lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev [dev.4] arrow key patch (was: Re: Lynx 2.8.3dev.4 and arr


From: yury . burkatovsky
Subject: Re: lynx-dev [dev.4] arrow key patch (was: Re: Lynx 2.8.3dev.4 and arr
Date: Wed, 21 Jul 1999 17:04:48 +0300 (IDT)

Dear lyncei,

I applied this patch to my lynx2-8-3dev.4 built on an HP-UX 10.20 box with 
slang 1.3.8.

Unfortunately, that did not help.

I could not notice any pattern when my lynx established a decent arrow key 
mapping and when it refused to do so until I paid attention at the xterm 
options in use.

The xterm window on my workstation tends to set up spuriously "Enable 
Application Cursor Keys" and "Enable Application Keypad" booleans, without a 
visible cause. So, when pine (or any other xterm-based application) suddenly 
starts a wrong behaviour, I immediately check these options and reset them 
using a pop-up "VT Options" menu. After that all the things resume to work 
properly.

I found in this thread that these same options could impact on the arrow 
mappings, and that was it.

Whenever the options are set, I get a wrong behaviour no matter if your patch 
is applied or not; when they are disabled, all arrows work properly.

BTW, lynx built with ncurses-5.0-990626 did not support the mouse on my box, 
while lynx with slang does. It was not the lynx's blame, because ncurses test 
utilities also are not sensitive to mouse clicks.

% what `which xterm`
/usr/bin/X11/xterm:
        X Window System, Version 11 R5+ HP-UX B.10.10.00 Feb 1996 Release
        (build date: Sun Feb  4 23:02:25 PST 1996)
        xterm: $Revision: 1.16 $
 --
Regards,                                                |       /^^^\
        Yury                                            |     (| , , |)
                                                        |      |  *  |
E-mail: yury.burkatovsky at telrad dot co dot il        |       \_-_/

     _________________________________________________________________
   
     * To: Lynx Developers <address@hidden>
     * Subject: lynx-dev [dev.4] arrow key patch (was: Re: Lynx
       2.8.3dev.4 and arrow keys)
     * From: Kim DeVaughn <address@hidden>
     * Date: Sat, 17 Jul 1999 13:23:57 -0600
     * In-Reply-To:
       <address@hidden>; from
       Kim Scarborough on Sat, Jul 17, 1999 at 01:26:25PM -0500
     * Mail-Followup-To: Lynx Developers <address@hidden>
     * Organization: Kim's Home for Wayward Cocktail Waitresses & Hors
       d'oeuvre Girls
     * References: <address@hidden>
       <address@hidden>
     * Reply-To: address@hidden
     * Sender: address@hidden
     _________________________________________________________________
   
On Sat, Jul 17, 1999, Kim Scarborough (address@hidden) said:
|
| I've caught up with the other thread, but I'm still a little confused.
| (Terminal issues *always* confuse me.) I compiled it with slang
| originally. After reading the thread, I compiled it with ncurses and it
| worked fine (but I lost my colors, so I don't want that). I'm not exactly
| sure what the upshot was of the thread, even after reading it.

Heh.  I can understand the confusion ...

Let me make it a real patch, which should (hopefully) solve the problem
that you and others are having.  If this *doesn't* work for you, please
let us know.

/kim


Against 2.8.3dev.4:

diff -uNr lynx2-8-3.dist/src/LYStrings.c lynx2-8-3/src/LYStrings.c
--- lynx2-8-3.dist/src/LYStrings.c      Wed Jul 14 10:25:26 1999
+++ lynx2-8-3/src/LYStrings.c   Sat Jul 17 12:53:31 1999
@@ -1083,13 +1083,13 @@
 PRIVATE void setup_vtXXX_keymap NOARGS
 {
     static Keysym_String_List table[] = {
-       EXTERN_KEY( "\033[A",   "^(ku)", UPARROW,       KEY_UP ),
+       EXTERN_KEY( "\033[A",   "\033[A", UPARROW,      KEY_UP ),
        EXTERN_KEY( "\033OA",   "^(ku)", UPARROW,       KEY_UP ),
-       EXTERN_KEY( "\033[B",   "^(kd)", DNARROW,       KEY_DOWN ),
+       EXTERN_KEY( "\033[B",   "\033[B", DNARROW,      KEY_DOWN ),
        EXTERN_KEY( "\033OB",   "^(kd)", DNARROW,       KEY_DOWN ),
-       EXTERN_KEY( "\033[C",   "^(kr)", RTARROW,       KEY_RIGHT ),
+       EXTERN_KEY( "\033[C",   "\033[C", RTARROW,      KEY_RIGHT ),
        EXTERN_KEY( "\033OC",   "^(kr)", RTARROW,       KEY_RIGHT ),
-       EXTERN_KEY( "\033[D",   "^(kl)", LTARROW,       KEY_LEFT ),
+       EXTERN_KEY( "\033[D",   "\033[D", LTARROW,      KEY_LEFT ),
        EXTERN_KEY( "\033OD",   "^(kl)", LTARROW,       KEY_LEFT ),
        EXTERN_KEY( "\033[1~",  "^(@0)", FIND_KEY,      KEY_FIND ),
        EXTERN_KEY( "\033[2~",  "^(kI)", INSERT_KEY,    KEY_IC ),

reply via email to

[Prev in Thread] Current Thread [Next in Thread]