Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2011 13:24:51 -0700
From:      Gary Kline <kline@thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: I'm looking for a curses one-iner.
Message-ID:  <20110410202451.GB6848@thought.org>
In-Reply-To: <20110410192250.GC12620@libertas.local.camdensoftware.com>
References:  <20110410184227.GA5158@thought.org> <20110410192250.GC12620@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <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().
> 


	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110410202451.GB6848>