From 639fbe03922924b70fca7860845590e8c3aa927a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 26 Jul 2009 21:42:08 +0000 Subject: Detect backspace by looking at termios VERASE and translate it into \177 (which matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong. --- key-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'key-string.c') diff --git a/key-string.c b/key-string.c index 23aa6ad7..5c8ce5b3 100644 --- a/key-string.c +++ b/key-string.c @@ -57,7 +57,7 @@ struct { { "PPage", KEYC_PPAGE }, { "Tab", '\011' }, { "BTab", KEYC_BTAB }, - { "BSpace", '\177' }, + { "BSpace", KEYC_BSPACE }, /* Arrow keys. */ { "Up", KEYC_UP }, -- cgit v1.2.3