Revision: 2535
http://tmux.svn.sourceforge.net/tmux/?rev=2535&view=rev
Author: tcunha
Date: 2011-07-03 21:50:27 +0000 (Sun, 03 Jul 2011)
Log Message:
-----------
Sync OpenBSD patchset 925:
Add a couple of extra xterm-style keys that gnome terminal provides,
from Dustin Kirkland.
Modified Paths:
--------------
trunk/xterm-keys.c
Modified: trunk/xterm-keys.c
===================================================================
--- trunk/xterm-keys.c 2011-06-27 23:04:44 UTC (rev 2534)
+++ trunk/xterm-keys.c 2011-07-03 21:50:27 UTC (rev 2535)
@@ -1,4 +1,4 @@
-/* $Id: xterm-keys.c,v 1.9 2011-04-06 22:17:33 nicm Exp $ */
+/* $Id$ */
/*
* Copyright (c) 2009 Nicholas Marriott <[email protected]>
@@ -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 @@
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;_~" },
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs