[PATCH] kconfig/mconf: fix handling of BACKSPACE key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some ancient terminals send control-H (decimal 8) when the BACKSPACE key is
pressed.  In "make menuconfig", an input box discards the keystroke.  Change
it to treat BACKSPACE in the same way as the DELETE key (or, as old-timers
call it, the RUBOUT key.)

Signed-off-by: Andrew Klossner <Andrew.Klossner@xxxxxxxxxxxxx>
---
 scripts/kconfig/lxdialog/inputbox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c
index 447a582..60cddd2 100644
--- a/scripts/kconfig/lxdialog/inputbox.c
+++ b/scripts/kconfig/lxdialog/inputbox.c
@@ -127,6 +127,7 @@ do_resize:
 				break;
 			case KEY_BACKSPACE:
 			case 127:
+			case 8: /* Backspace on old terminals sends control-H */
 				if (pos) {
 					wattrset(dialog, dlg.inputbox.atr);
 					if (input_x == 0) {
-- 
1.9.2



--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux