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. --- tmux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmux.h') 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, -- cgit