aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
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 /tmux.h
parent55d8c01c339db6dd66ed85ce3da5273632da6ca5 (diff)
downloadrtmux-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 159711e7..046e6a19 100644
--- a/tmux.h
+++ b/tmux.h
@@ -121,6 +121,9 @@ enum key_code {
/* Mouse key. */
KEYC_MOUSE = 0x1000,
+ /* Backspace key. */
+ KEYC_BSPACE,
+
/* Function keys. */
KEYC_F1,
KEYC_F2,