nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Problem with keys ...
From: Ritesh Saigal
Date: Wed, 11 Oct 2000 11:37:30 -0700

Hi !

The variable 'special' of structure GR_EVENT_KEYSTROKE always returns 0,

which indicates GR_SPECIAL_KEY_NOSPECIAL whereas it should return some
non-zero identifier for  keys such as function keys, esc, tab, arrow
etc.

Can u tell me what's going wrong.

Thanks,

Ritesh.

Greg Haerr wrote:

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