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/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f0b7fd5.1030...@gmail.com