nanogui@linuxhacker.org
nanogui@linuxhacker.org
It worked - thanks.
Another problem:
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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nanogui-unsubscribe@linuxhacker.org
> For additional commands, e-mail: nanogui-help@linuxhacker.org
nanogui@linuxhacker.org