diff options
author | Changbin Du | 2019-03-25 15:16:47 +0000 |
---|---|---|
committer | Masahiro Yamada | 2019-03-29 22:48:01 +0900 |
commit | 9c38f1f044080392603c497ecca4d7d09876ff99 (patch) | |
tree | cfccd65421505a7cabf6e3e9f13a1ed64035ecf7 /scripts/kconfig/lxdialog/inputbox.c | |
parent | 54a7151b1496cddbb7a83546b7998103e98edc88 (diff) |
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/inputbox.c')
-rw-r--r-- | scripts/kconfig/lxdialog/inputbox.c | 3 |
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) { |