aboutsummaryrefslogtreecommitdiff
path: root/input-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-28 22:37:02 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-28 22:37:02 +0000
commit361801aaaa4f68768f7f45695c51bbe5a1acee2b (patch)
tree575efc02cb16abad18f951092daf963abaceb2a8 /input-keys.c
parent2aa4d473121520167962756c5323865c73607186 (diff)
downloadrtmux-361801aaaa4f68768f7f45695c51bbe5a1acee2b.tar.gz
rtmux-361801aaaa4f68768f7f45695c51bbe5a1acee2b.tar.bz2
rtmux-361801aaaa4f68768f7f45695c51bbe5a1acee2b.zip
Sync OpenBSD patchset 184:
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index e4df29e8..e8c4804a 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -1,4 +1,4 @@
-/* $Id: input-keys.c,v 1.28 2009-07-22 16:24:59 tcunha Exp $ */
+/* $Id: input-keys.c,v 1.29 2009-07-28 22:37:02 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 },