delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/02/16:23:03

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
In-Reply-To: <coo05h$2a9$1@sea.gmane.org>
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: rxvt shift f1 and f2 same as f11 f12
Message-ID: <OF162CE85F.C83867F4-ON86256F5E.00749BB9-86256F5E.00757146@us.ibm.com>
From: Fred Kulack <kulack AT us DOT ibm DOT com>
Date: Thu, 2 Dec 2004 15:22:48 -0600
X-IsSubscribed: yes

I've been having a problem using rxvt where shift-f1 and shift-f2 end up
with the same scan codes as f11 and f12.
tn5250 to an iSeries really requires the full set of function and shifted 
function keys.

Did a bunch of searching and playing around with termcap and ilk.
Also found this but really not much luck otherwise.
  http://www.cygwin.com/ml/cygwin/2003-06/msg00394.html

I ended up making this change to my local rxvt version 2.7.10-4:
Though I didn't correctly build a non X windows version yet, it works for 
me.
I'm really a rookie with terminal stuff. and I'm guessing there's 
some historical reason why it might have only processed up to shift-F10 
instead 
of shift-F12.
Anyone have any insights?

--- command.original.c  2004-12-02 14:54:03.802104200 -0600
+++ command.c   2004-12-02 14:54:28.477585800 -0600
@@ -179,9 +179,9 @@
        }
 
        if (shft) {
-       /* Shift + F1 - F10 generates F11 - F20 */
-           if (keysym >= XK_F1 && keysym <= XK_F10) {
-               keysym += (XK_F11 - XK_F1);
+       /* Shift + F1 - F12 generates F113- F24 */
+           if (keysym >= XK_F1 && keysym <= XK_F12) {
+               keysym += (XK_F13 - XK_F1);
                shft = 0;       /* turn off Shift */
            } else if (!ctrl && !meta && (r->h->PrivateModes & 
PrivMode_ShiftKeys)) {
                switch (keysym) {



"The stuff we call "software" is not like anything that human society 
  is used to thinking about. Software is something like a machine, and 
  something like mathematics, and something like language, and 
  something like thought, and art, and information... 
  but software is not in fact any of those other things."
Bruce Sterling - The Hacker Crackdown

Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions
ERP, Java DB2 access, Jdbc, JTA, etc...
IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
mailto:kulack/us.ibm.com   Personal: mailto:kulack/gmail.com
AIM Home:FKulack  AIM Work:FKulackWrk 
MSN Work: fakulack/hotmail.com (replace email / with @)

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