Skip to content

console: escape sequence handling improvement

Ahmad Fatoum barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5readkey: wait for the rest of an escape sequencelib/readkey.c+3 -10 replies
2/5lib: term: ask the terminal when a console can't tell its sizelib/term.c+3 -20 replies
3/5serial: virtio_console: report the console sizedrivers/serial/virtio_console.c+27 -00 replies
4/5console: give each console implementation its own console_ctrlc()common/console.c common/console_ctrlc.c common/console_simple.c +1 more+26 -80 replies
5/5console: keep the keys typed ahead when checking for Ctrl-Ccommon/console.c+26 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] console: escape sequence handling improvement

The v2026.07.0 update broke arrow key usage in the web demo for some users. Proper fix is on the riscvemu side, but there's still some things we can do at the barebox side to make escape sequence handling more robust.

Ahmad Fatoum (5):
readkey: wait for the rest of an escape sequence
lib: term: ask the terminal when a console can't tell its size
serial: virtio_console: report the console size
console: give each console implementation its own console_ctrlc()
console: keep the keys typed ahead when checking for Ctrl-C

 common/console.c                | 35 +++++++++++++++++++++++++++++++++
 common/console_ctrlc.c          | 10 ++++------
 common/console_simple.c         | 10 ++++++++++
 drivers/serial/virtio_console.c | 27 +++++++++++++++++++++++++
 include/console.h               |  4 ++--
 lib/readkey.c                   |  4 +++-
 lib/term.c                      |  5 +++--
 7 files changed, 84 insertions(+), 11 deletions(-)
Signature · 1 line
2.47.3