summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-10 18:28:09 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-10 18:28:09 +0000
commit312633203d58a19e7c1523e1589d72b3b3948c9c (patch)
tree703100735d5cb965eac4532bd5dfdef985e7f680
parent9722e7194bb054ea88919fc426897a4d17698eb6 (diff)
Support btab.
-rw-r--r--input-keys.c3
-rw-r--r--tmux.h3
-rw-r--r--tty-keys.c3
-rw-r--r--tty-term.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/input-keys.c b/input-keys.c
index cf7f4ce7..98d0e001 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -1,4 +1,4 @@
-/* $Id: input-keys.c,v 1.19 2009-01-10 01:51:21 nicm Exp $ */
+/* $Id: input-keys.c,v 1.20 2009-01-10 18:28:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,6 +55,7 @@ struct input_key_ent input_keys[] = {
{ KEYC_END, "\033[4~", INPUTKEY_MODIFIER|INPUTKEY_XTERM },
{ KEYC_NPAGE, "\033[6~", INPUTKEY_MODIFIER|INPUTKEY_XTERM },
{ KEYC_PPAGE, "\033[5~", INPUTKEY_MODIFIER|INPUTKEY_XTERM },
+ { KEYC_BTAB, "\033[Z", INPUTKEY_MODIFIER },
/* Arrow keys. Cursor versions must come first. */
{ KEYC_UP, "\033OA", INPUTKEY_MODIFIER|INPUTKEY_CURSOR },
diff --git a/tmux.h b/tmux.h
index 5a5fc37a..115fd406 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.215 2009-01-10 14:43:43 nicm Exp $ */
+/* $Id: tmux.h,v 1.216 2009-01-10 18:28:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -195,6 +195,7 @@ struct buffer {
#define KEYC_END (KEYC_OFFSET + 0x16)
#define KEYC_NPAGE (KEYC_OFFSET + 0x17)
#define KEYC_PPAGE (KEYC_OFFSET + 0x18)
+#define KEYC_BTAB (KEYC_OFFSET + 0x19)
/* Arrow keys. */
#define KEYC_UP (KEYC_OFFSET + 0x50)
diff --git a/tty-keys.c b/tty-keys.c
index ae1c3c10..0fbcbc5f 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -1,4 +1,4 @@
-/* $Id: tty-keys.c,v 1.17 2009-01-10 01:51:22 nicm Exp $ */
+/* $Id: tty-keys.c,v 1.18 2009-01-10 18:28:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,6 +53,7 @@ struct tty_key_ent tty_keys[] = {
{ TTYC_KEND, NULL, KEYC_END, TTYKEY_MODIFIER },
{ TTYC_KNP, NULL, KEYC_NPAGE, TTYKEY_MODIFIER },
{ TTYC_KPP, NULL, KEYC_PPAGE, TTYKEY_MODIFIER },
+ { TTYC_KCBT, NULL, KEYC_BTAB, TTYKEY_MODIFIER },
/* Arrow keys. */
{ TTYC_KCUU1, NULL, KEYC_UP, TTYKEY_MODIFIER },
diff --git a/tty-term.c b/tty-term.c
index 4a95219d..18e9dafc 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -1,4 +1,4 @@
-/* $Id: tty-term.c,v 1.3 2009-01-10 01:51:22 nicm Exp $ */
+/* $Id: tty-term.c,v 1.4 2009-01-10 18:28:09 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -67,6 +67,7 @@ struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
{ TTYC_IS1, TTYCODE_STRING, "is1" },
{ TTYC_IS2, TTYCODE_STRING, "is2" },
{ TTYC_IS3, TTYCODE_STRING, "is3" },
+ { TTYC_KCBT, TTYCODE_STRING, "kcbt" },
{ TTYC_KCUB1, TTYCODE_STRING, "kcub1" },
{ TTYC_KCUD1, TTYCODE_STRING, "kcud1" },
{ TTYC_KCUF1, TTYCODE_STRING, "kcuf1" },