From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 19:22:55 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CFF2106564A for ; Sun, 10 Apr 2011 19:22:55 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh1.interactivevillages.com (ca.2e.7bae.static.theplanet.com [174.123.46.202]) by mx1.freebsd.org (Postfix) with ESMTP id 23CBD8FC1D for ; Sun, 10 Apr 2011 19:22:54 +0000 (UTC) Received: from c-24-22-230-24.hsd1.wa.comcast.net ([24.22.230.24] helo=_HOSTNAME_) by wh1.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Q90Dj-0000AF-Ko for freebsd-questions@FreeBSD.ORG; Sun, 10 Apr 2011 15:22:52 -0400 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Sun, 10 Apr 2011 12:22:50 -0700 Date: Sun, 10 Apr 2011 12:22:50 -0700 From: Chip Camden To: FreeBSD Mailing List Message-ID: <20110410192250.GC12620@libertas.local.camdensoftware.com> Mail-Followup-To: FreeBSD Mailing List References: <20110410184227.GA5158@thought.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ctP54qlpMx3WjD+/" Content-Disposition: inline In-Reply-To: <20110410184227.GA5158@thought.org> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh1.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: I'm looking for a curses one-iner. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2011 19:22:55 -0000 --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 /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+/--