diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-26 21:42:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-26 21:42:08 +0000 |
commit | 639fbe03922924b70fca7860845590e8c3aa927a (patch) | |
tree | 105603ab6f5b743e0faef50913c3b6ac7e02af3d /input-keys.c | |
parent | 55d8c01c339db6dd66ed85ce3da5273632da6ca5 (diff) | |
download | rtmux-639fbe03922924b70fca7860845590e8c3aa927a.tar.gz rtmux-639fbe03922924b70fca7860845590e8c3aa927a.tar.bz2 rtmux-639fbe03922924b70fca7860845590e8c3aa927a.zip |
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 'input-keys.c')
-rw-r--r-- | input-keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/input-keys.c b/input-keys.c index 0afe6e47..30e2be05 100644 --- a/input-keys.c +++ b/input-keys.c @@ -36,6 +36,9 @@ struct input_key_ent { }; struct input_key_ent input_keys[] = { + /* Backspace key. */ + { KEYC_BSPACE, "\177", 0 }, + /* Function keys. */ { KEYC_F1, "\033OP", INPUTKEY_CTRL|INPUTKEY_XTERM }, { KEYC_F2, "\033OQ", INPUTKEY_CTRL|INPUTKEY_XTERM }, |