summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-26 21:42:08 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-26 21:42:08 +0000
commit639fbe03922924b70fca7860845590e8c3aa927a (patch)
tree105603ab6f5b743e0faef50913c3b6ac7e02af3d /key-string.c
parent55d8c01c339db6dd66ed85ce3da5273632da6ca5 (diff)
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.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c2
1 files changed, 1 insertions, 1 deletions
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 },