u-boot/test
Yurii Monakov 2dd86b9075 cli: Consume invalid escape sequences early
Unexpected 'Esc' key presses are accumulated internally, even if it is
already clear that the current escape sequence is invalid. This results
in weird behaviour. For example, the next character after 'Esc' key
simply disappears from input and 'Unknown command' is printed
after 'Enter'.

This commit fixes some issues with extra 'Esc' keys entered by user:

1. Sequence <Esc><Esc><Enter> right after autoboot stop gives:
=>
nknown command 'ry 'help'
=>
2. Sequence <Esc><p><r><i><Enter> gives:
=> ri
Unknown command 'ri' - try 'help'
=>
3. Extra 'Esc' key presses break backspace functionality.

Signed-off-by: Yurii Monakov <monakov.y@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-24 16:34:45 -04:00
..
boot bootstd: Scan all bootdevs in a boot_targets entry (take 2) 2023-10-23 13:05:13 -04:00
cmd cli: Add a command to show cmdline history 2023-10-11 15:43:54 -04:00
common cli: Consume invalid escape sequences early 2023-10-24 16:34:45 -04:00
dm rockchip: test: dm: add rkmtd test 2023-10-24 15:55:17 +08:00
env
fs Use grep -E or plain grep instead of egrep 2023-01-11 15:02:24 -05:00
fuzz cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
image test: spl: Add a test for the SPI load method 2023-10-17 20:50:52 -04:00
lib test: lmb: Add test for coalescing and overlap range 2023-10-09 15:24:31 -04:00
log log: Remove some places where we redefine LOGLEVEL 2022-12-23 10:07:03 -05:00
optee
overlay
py test: spl: Add a test for the SPI load method 2023-10-17 20:50:52 -04:00
stdint
trace
bloblist.c bloblist: Add functions to obtain base address and size 2022-01-13 09:13:41 -07:00
bootm.c test: Fix bootm_test_subst_var() running independently 2022-09-12 18:06:36 -04:00
cmd_ut.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
command_ut.c unit-test: cover run_commandf() by test-cases 2023-03-30 15:09:59 -04:00
common.sh
compression.c test: compression: add zstd uncompression test 2023-01-18 19:41:15 -05:00
Kconfig test: spl: Split tests up and use some configs 2023-10-17 20:50:52 -04:00
Makefile test: spl: Split tests up and use some configs 2023-10-17 20:50:52 -04:00
print_ut.c test: print: Fix hexdump test on 64bit systems 2023-09-06 13:51:19 -04:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
str_ut.c lib: Add a function to split a string into substrings 2023-01-23 18:11:39 -05:00
test-main.c spl: Allow enabling SPL_OF_REAL and SPL_OF_PLATDATA at the same time 2023-10-17 20:50:52 -04:00
time_ut.c
unicode_ut.c test: unicode: fix a sizeof() vs ARRAY_SIZE() bug 2023-08-08 17:41:52 -04:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00