This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

High F-Keys


I've found an issue with the Sifted F-Keys in Cygwin, Shift-F1 (or
F13) is sending out the same escape sequence as F11, and the all the
rest of the High F-Keys have the same sort of issue.

I've created a patch that fixes this, as well as adds support for F23
and F24 (which weren't implemented before).

Can this get merged into the actual source tree?

Thanks
-Jeff Lange

--- cygwin-1.5.19-4/winsup/cygwin/fhandler_console.cc	2006-01-16
12:14:35.000000000 -0500
+++ cygwin-1.5.19-4-JKL/winsup/cygwin/fhandler_console.cc	2006-05-15
15:26:44.914514300 -0400
@@ -1694,18 +1694,18 @@
  {VK_END,	{"\033[4~",	"\033[4~",	"\033[4~",	"\033\033[4~"}},
  {VK_INSERT,	{"\033[2~",	"\033[2~",	"\033[2~",	"\033\033[2~"}},
  {VK_DELETE,	{"\033[3~",	"\033[3~",	"\033[3~",	"\033\033[3~"}},
-  {VK_F1,	{"\033[[A",	"\033[23~",	NULL,		NULL}},
-  {VK_F2,	{"\033[[B",	"\033[24~",	NULL,		NULL}},
-  {VK_F3,	{"\033[[C",	"\033[25~",	NULL,		NULL}},
-  {VK_F4,	{"\033[[D",	"\033[26~",	NULL,		NULL}},
-  {VK_F5,	{"\033[[E",	"\033[28~",	NULL,		NULL}},
-  {VK_F6,	{"\033[17~",	"\033[29~",	"\036",		NULL}},
-  {VK_F7,	{"\033[18~",	"\033[31~",	NULL,		NULL}},
-  {VK_F8,	{"\033[19~",	"\033[32~",	NULL,		NULL}},
-  {VK_F9,	{"\033[20~",	"\033[33~",	NULL,		NULL}},
-  {VK_F10,	{"\033[21~",	"\033[34~",	NULL,		NULL}},
-  {VK_F11,	{"\033[23~",	NULL,		NULL,		NULL}},
-  {VK_F12,	{"\033[24~",	NULL,		NULL,		NULL}},
+  {VK_F1,	{"\033[[A",	"\033[25~",	NULL,		NULL}},
+  {VK_F2,	{"\033[[B",	"\033[26~",	NULL,		NULL}},
+  {VK_F3,	{"\033[[C",	"\033[28~",	NULL,		NULL}},
+  {VK_F4,	{"\033[[D",	"\033[29~",	NULL,		NULL}},
+  {VK_F5,	{"\033[[E",	"\033[31~",	NULL,		NULL}},
+  {VK_F6,	{"\033[17~",	"\033[32~",	"\036",		NULL}},
+  {VK_F7,	{"\033[18~",	"\033[33~",	NULL,		NULL}},
+  {VK_F8,	{"\033[19~",	"\033[34~",	NULL,		NULL}},
+  {VK_F9,	{"\033[20~",	"\033[35~",	NULL,		NULL}},
+  {VK_F10,	{"\033[21~",	"\033[36~",	NULL,		NULL}},
+  {VK_F11,	{"\033[23~",	"\033[37~",	NULL,		NULL}},
+  {VK_F12,	{"\033[24~",	"\033[38~",	NULL,		NULL}},
  {VK_NUMPAD5,	{"\033[G",	NULL,		NULL,		NULL}},
  {VK_CLEAR,	{"\033[G",	NULL,		NULL,		NULL}},
  {'6',		{NULL,		NULL,		"\036",		NULL}},

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]