From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 20:24:53 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 C6BF5106564A for ; Sun, 10 Apr 2011 20:24:53 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 9D8648FC0A for ; Sun, 10 Apr 2011 20:24:53 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 15183E80AEC; Sun, 10 Apr 2011 13:24:51 -0700 (PDT) Date: Sun, 10 Apr 2011 13:24:51 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20110410202451.GB6848@thought.org> References: <20110410184227.GA5158@thought.org> <20110410192250.GC12620@libertas.local.camdensoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110410192250.GC12620@libertas.local.camdensoftware.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) 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 20:24:53 -0000 On Sun, Apr 10, 2011 at 12:22:50PM -0700, Chip Camden wrote: > 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 /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(). > YES! ANd give that man in the srtaw hat a seegar! After waiting and thinking about howto get a user-side driver to make individual keys "click," and after wading thru the 30 pages of python that i'm now getting my head around, I decided to try it myself. Borrow here/there, and put in my own click.c into the daemon. According to the one-laptop-per-child group my program might be a win for their platform. The "keyboard" is membrane-style. Et cetera. Even if it only help me on my old 2005 Thinkpad, hey.... > -- > .o. | Sterling (Chip) Camden | http://camdensoftware.com > ..o | sterling@camdensoftware.com | http://chipsquips.com > ooo | 2048R/D6DBAF91 | http://chipstips.com -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org