delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/15/15:43:07

X-Spam-Check-By: sourceware.org
Message-ID: <d62889820605151242w263efc9cy2b59aecec6477342@mail.gmail.com>
Date: Mon, 15 May 2006 15:42:28 -0400
From: "Jeff Lange" <jlange6648 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: High F-Keys
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k4FJh1wQ001201

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019