summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-07-22 20:48:51 -0400
committerTom Rini <trini@konsulko.com>2022-07-22 20:48:51 -0400
commit03662dc50627b3dc05a1c17f968bf26203f34666 (patch)
tree39512abd3af00a222bd26ea92dc36b1e4e549702 /common
parentfd41c8f7a3b00ffcdcfab6d78b006a9e2a5c1873 (diff)
parent052e8ca421cc8697f8cf7de16253627c4c92f4dc (diff)
Merge tag 'efi-2022-10-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-10-rc1-2 Documentation: * doc: add package uuid-dev to build dependencies UEFI: * remove support for CONFIG_LCD * fix authenticated capsules tests Others: * pxe: simplify label_boot() * cli: support bracketed paste
Diffstat (limited to 'common')
-rw-r--r--common/cli_readline.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/common/cli_readline.c b/common/cli_readline.c
index c7614a4c90..e86ee73faf 100644
--- a/common/cli_readline.c
+++ b/common/cli_readline.c
@@ -321,6 +321,7 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len,
act = ESC_CONVERTED;
break; /* pass off to ^N handler */
case '1':
+ case '2':
case '3':
case '4':
case '7':
@@ -332,7 +333,8 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len,
break;
}
} else if (esc_len == 3) {
- if (ichar == '~') {
+ switch (ichar) {
+ case '~':
switch (esc_save[2]) {
case '3': /* Delete key */
ichar = CTL_CH('d');
@@ -349,9 +351,25 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len,
act = ESC_CONVERTED;
break; /* pass to ^E handler */
}
+ break;
+ case '0':
+ if (esc_save[2] == '2')
+ act = ESC_SAVE;
+ break;
+ }
+ } else if (esc_len == 4) {
+ switch (ichar) {
+ case '0':
+ case '1':
+ act = ESC_SAVE;
+ break; /* bracketed paste */
+ }
+ } else if (esc_len == 5) {
+ if (ichar == '~') { /* bracketed paste */
+ ichar = 0;
+ act = ESC_CONVERTED;
}
}
-
switch (act) {
case ESC_SAVE:
esc_save[esc_len++] = ichar;