summaryrefslogtreecommitdiffstats
path: root/xterm-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-06-23 10:02:49 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-06-23 10:02:49 +0000
commit0503f83c64229b38f40e1ed6d0148c64521bf364 (patch)
tree3f09f5570ecbf42405705fcf07576c8ac0af5ff6 /xterm-keys.c
parent65177b82be7eca053ce12eb05e7d0049124ff659 (diff)
Add a couple of extra xterm-style keys that gnome terminal provides,
from Dustin Kirkland.
Diffstat (limited to 'xterm-keys.c')
-rw-r--r--xterm-keys.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xterm-keys.c b/xterm-keys.c
index fd9fee8a..1956c0b4 100644
--- a/xterm-keys.c
+++ b/xterm-keys.c
@@ -36,8 +36,8 @@
*
* Rather than parsing them, just match against a table.
*
- * There are two forms for F1-F4 (\\033O_P or \\033[1;_P). We accept either but
- * always output the latter (it comes first in the table).
+ * There are three forms for F1-F4 (\\033O_P and \\033O1;_P and \\033[1;_P).
+ * We accept any but always output the latter (it comes first in the table).
*/
int xterm_keys_match(const char *, const char *, size_t);
@@ -50,12 +50,16 @@ struct xterm_keys_entry {
const struct xterm_keys_entry xterm_keys_table[] = {
{ KEYC_F1, "\033[1;_P" },
+ { KEYC_F1, "\033O1;_P" },
{ KEYC_F1, "\033O_P" },
{ KEYC_F2, "\033[1;_Q" },
+ { KEYC_F2, "\033O1;_Q" },
{ KEYC_F2, "\033O_Q" },
{ KEYC_F3, "\033[1;_R" },
+ { KEYC_F3, "\033O1;_R" },
{ KEYC_F3, "\033O_R" },
{ KEYC_F4, "\033[1;_S" },
+ { KEYC_F4, "\033O1;_S" },
{ KEYC_F4, "\033O_S" },
{ KEYC_F5, "\033[15;_~" },
{ KEYC_F6, "\033[17;_~" },