Quoth Gary Kline on Sunday, 10 April 2011:
> People,
> 
> Can anybody point me to a one-line of curses (it may be *long* and
> obscure) that allows keyboard input _without_ hitting <cr>/enter.  
> So, in effect, I couold use the curses getchar() and have things
> echoed to stdout without bothering to type Enter.   There may be a
> matching one-liner to set things back to the way they were upon
> exiting the curses program.

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#RAWCBREAK

See also "man raw".  I think what you want is raw() and noraw().

-- 
.o. | Sterling (Chip) Camden      | http://camdensoftware.com
..o | sterl...@camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91              | http://chipstips.com

Attachment: pgpqUwnvTYXfc.pgp
Description: PGP signature

Reply via email to