nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Problem with keys ...
From: Greg Haerr
Date: Tue, 10 Oct 2000 11:27:37 -0600

: Its still not working. Escape, function, arrow, pagegup, pagedown keys
: terminate the application. I initialized escape_quits to 0, recompiled
: nanox,
: recompiled my program. The program still terminates on pressing any of
: these
: keys.

It's _still_ not working?@#$W#$?!!

Well, let's bring out the heavy artillery on this one.  I assume you've
got BOTH instances of escape_quits set to 0 in nanox/srvmain.c.

Modify the keyboard driver to NEVER return -2, which is what ESC
has been special cased to do.  For instance, in drivers/kbd_tty.c,
function TTY_Read, remove the following line:

    if(*buf == 0x1b)
        return -2;

Regards,

Greg


nanogui@linuxhacker.org