nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Keyboard events ...
From: Ritesh Saigal
Date: Fri, 27 Oct 2000 11:37:40 -0700


Hi Greg,

Right now I have the keyboard driver modifed to NEVER return -2, which
is what ESC
has been special cased to do.

So in drivers/kbd_tty.c,
function TTY_Read, the following line does not exist.

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

So now my application does not quit on pressing escape or any of the
function keys that generate "esc". Isnt there right now any way I can
catch any special keys....

Thanks & Regds,

Ritesh.

Greg Haerr wrote:

> : I am having trouble catching the keyboard special keys in my
> : application. I am able to catch the following keystrokes...
> : [a-z]
> : [0-9]
> : [<>;'[]-\=]
> :
> : I am unable to catch the following keys-
> : [F1-F12]
> : [Arrow-up,down,left,right]
> : [Home,End,Pageup,Pagedn,Insert,Delete]
>
> Anything that starts with an ESC will cause Nano-X to quit,
> unless you run "nano-X -e".  In addition, special decoding needs
> to be written for the function keys, unless we write a scan-code
> mode driver.
>
> Regards,
>
> Greg

--

*******************************************
Meet MbTV and the Metabyte Networks Team at
BROAD BAND WAGON, The Western Show
November 29-December 1, 2000.
Los Angeles Convention Center,
Booth #3001 in the West Hall

Please contact Colleen Jones
by phone at (510) 494-9700 x233
or by email at colleenj@mbtv.com to
schedule an appointment during the show.
*******************************************



nanogui@linuxhacker.org