Support btab.

This commit is contained in:
Nicholas Marriott 2009-01-10 18:28:09 +00:00
parent 9722e7194b
commit 312633203d
4 changed files with 8 additions and 4 deletions

View File

@ -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 },

3
tmux.h
View File

@ -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)

View File

@ -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 },

View File

@ -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" },