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.
This commit is contained in:
Nicholas Marriott
2009-07-26 21:42:08 +00:00
parent 55d8c01c33
commit 639fbe0392
5 changed files with 22 additions and 4 deletions

3
tmux.h
View File

@ -121,6 +121,9 @@ enum key_code {
/* Mouse key. */
KEYC_MOUSE = 0x1000,
/* Backspace key. */
KEYC_BSPACE,
/* Function keys. */
KEYC_F1,
KEYC_F2,