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

Ahmad Fatoum a.fatoum at barebox.org
Sun Nov 8 01:32:02 PST 2026


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(-)

-- 
2.47.3




More information about the barebox mailing list