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 /tmux.h | |
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 'tmux.h')
-rw-r--r-- | tmux.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -121,6 +121,9 @@ enum key_code { /* Mouse key. */ KEYC_MOUSE = 0x1000, + /* Backspace key. */ + KEYC_BSPACE, + /* Function keys. */ KEYC_F1, KEYC_F2, |