diff options
author | Changbin Du <changbin.du@gmail.com> | 2019-03-25 18:16:47 +0300 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-03-29 16:48:01 +0300 |
commit | 9c38f1f044080392603c497ecca4d7d09876ff99 (patch) | |
tree | cfccd65421505a7cabf6e3e9f13a1ed64035ecf7 /scripts/kconfig/nconf.gui.c | |
parent | 54a7151b1496cddbb7a83546b7998103e98edc88 (diff) | |
download | linux-9c38f1f044080392603c497ecca4d7d09876ff99.tar.xz |
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/nconf.gui.c')
-rw-r--r-- | scripts/kconfig/nconf.gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c index 7be620a1fcdb..77f525a8617c 100644 --- a/scripts/kconfig/nconf.gui.c +++ b/scripts/kconfig/nconf.gui.c @@ -439,7 +439,8 @@ int dialog_inputbox(WINDOW *main_window, case KEY_F(F_EXIT): case KEY_F(F_BACK): break; - case 127: + case 8: /* ^H */ + case 127: /* ^? */ case KEY_BACKSPACE: if (cursor_position > 0) { memmove(&result[cursor_position-1], |