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

Re: kbd raw mode in terminal emulator



On 10/01/12 10:36, Maroš Žilka wrote:
> Hi list,
> 
> I am making little game with ncurses and I need to now when is some key
> pressed or released ( of course this must be non-blocking ) so I think
> the only way to do this is set the keyboard to raw mode, this work nice
> in virtual console but i can not switch mode in Gnome terminal (or any
> terminal emulator ) is there any way to do this ? If no how can I most
> easily check state of keys.
> 
> Thank you.
> 
> Maros.
> 
> 

wgetch()

Perhaps I'm misunderstanding your question. Have you tried xev?



Cheers

-- 
Iceweasel/Firefox extensions for finding answers to Debian questions:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


Reply to: