I'm looking for a curses one-iner.

Chip Camden sterling at camdensoftware.com
Sun Apr 10 19:22:55 UTC 2011


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 | sterling at camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91              | http://chipstips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110410/3cfd5d8f/attachment.pgp


More information about the freebsd-questions mailing list