Date: Wed, 25 Jun 1997 08:50:07 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG ('freebsd-hackers@freebsd.org') Cc: MSAYER@cuscal.com.au (MARK SAYER) Subject: Re: BSD io Message-ID: <19970625085007.ZX52176@uriah.heep.sax.de> In-Reply-To: <199706250208.TAA23288@hub.freebsd.org>; from MARK SAYER on Jun 25, 1997 12:07:47 %2B1000 References: <199706250208.TAA23288@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
As MARK SAYER wrote: > I have been looking for this for ages. I resorted to using ncurses, but > then I was stuck with using ncurses window management (yuk). So, I tried > the code below and it doesn't seem to work as promised. I just want the > program to trap 1 keypress and continue execution. Who promised this program to work? > new.c_iflag &=~(ICANON|ECHO); new.c_lflag &= ~(ICANON | ECHO | IEXTEN); /* consider ISIG etc., too */ ...and it works. Also, you should probably do: new.c_cc[VMIN] = 1; new.c_cc[VTIME] = 0; to specify your wishes explicitly. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970625085007.ZX52176>