
18 Aug
2006
18 Aug
'06
9:50 p.m.
In message GPECLCIGPLHEOMGPMCPAAELFDOAA.edjubenville@adelphia.net you wrote:
In my standalone application, I'd like to implement a menu system based on single keystrokes. Exported function tstc() won't return any keystrokes until I hit the ENTER key. How can I turn off canonical input for a standalone application?
Your message makes no sense.
tstc() *never* returns any keycodes. It returns 1 if there was any key pressed (without actually emptying the receive buffer).
What you probably might want is getc(), and this function returns each and every key code without any processing.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Even historians fail to learn from history -- they repeat the same
mistakes.
-- John Gill, "Patterns of Force", stardate 2534.7