aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lxdialog
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@gmail.com>2019-03-25 15:16:47 +0000
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-29 22:48:01 +0900
commit9c38f1f044080392603c497ecca4d7d09876ff99 (patch)
treecfccd65421505a7cabf6e3e9f13a1ed64035ecf7 /scripts/kconfig/lxdialog
parentkbuild: modversions: Fix relative CRC byte order interpretation (diff)
downloadlinux-dev-9c38f1f044080392603c497ecca4d7d09876ff99.tar.xz
linux-dev-9c38f1f044080392603c497ecca4d7d09876ff99.zip
kconfig/[mn]conf: handle backspace (^H) key
Backspace is not working on some terminal emulators which do not send the key code defined by terminfo. Terminals either send '^H' (8) or '^?' (127). But currently only '^?' is handled. Let's also handle '^H' for those terminals. Signed-off-by: Changbin Du <changbin.du@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/lxdialog')
-rw-r--r--scripts/kconfig/lxdialog/inputbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c
index 611945611bf8..1dcfb288ee63 100644
--- a/scripts/kconfig/lxdialog/inputbox.c
+++ b/scripts/kconfig/lxdialog/inputbox.c
@@ -113,7 +113,8 @@ do_resize:
case KEY_DOWN:
break;
case KEY_BACKSPACE:
- case 127:
+ case 8: /* ^H */
+ case 127: /* ^? */
if (pos) {
wattrset(dialog, dlg.inputbox.atr);
if (input_x == 0) {