Date: Sun, 10 Apr 2011 12:22:50 -0700 From: Chip Camden <sterling@camdensoftware.com> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: Re: I'm looking for a curses one-iner. Message-ID: <20110410192250.GC12620@libertas.local.camdensoftware.com> In-Reply-To: <20110410184227.GA5158@thought.org> References: <20110410184227.GA5158@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--ctP54qlpMx3WjD+/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Gary Kline on Sunday, 10 April 2011: > People, >=20 > Can anybody point me to a one-line of curses (it may be *long* and > obscure) that allows keyboard input _without_ hitting <cr>/enter. =20 > 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(). --=20 =2Eo. | Sterling (Chip) Camden | http://camdensoftware.com =2E.o | sterling@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com --ctP54qlpMx3WjD+/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJNogOKAAoJEIpckszW26+Rd3gIAJj/NLuX97sLWufLnzq6klxg kMa9FdT3jXaOJKVA/IEvIHuwxkGk+bpqMVC3DU3qWLAKcCL1EsnV4/uddaBrPpYb ikpUuQJC7TNre2G2uStJJiv8/jwP46jqmF4iNAiVHfFhBqaoYIuaWr4/599yE0c4 wDUPZMdK5oWXzMA8TgpDkjy3ZQkYKCsGVuVuI6I3p73xfZFRojEjk7b7u2LrpuaF qAa3PR6c4XIJKFJ8liUUN12wnVyAPOavk+9i6NUdkOnfs3q9TSQeq7b+OrEQrv5H hcDPKNA6oYjZraY0ZZgYiRlyk8O8RAcumKQcCZAwgKJ8l2kjxai9cJAuhJSynlU= =gRGG -----END PGP SIGNATURE----- --ctP54qlpMx3WjD+/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110410192250.GC12620>