home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!ma2s2!haible
- From: haible@ma2s2.uucp (Bruno Haible)
- Subject: Re: nn keb'd trouble...can't read single char at a time
- Message-ID: <1992Sep12.212600.15639@rz.uni-karlsruhe.de>
- Keywords: termio, stty
- Sender: haible@ma2s2.mathematik.uni-karlsruhe.de
- Organization: University of Karlsruhe, Germany
- References: <1992Sep12.110153.9578@ucsu.Colorado.EDU>
- Date: Sat, 12 Sep 1992 21:26:00 GMT
- Lines: 17
-
- kgleason@nyx.cs.du.edu (Kris Gleason) writes:
-
- > Keyboard input is only passed to the
- > program after 4 characters are typed. On every fourth character's entry,
- > all 4 are processed by nn. Call me an idiot, but this seems like strange
- > behaviour.
-
- Execute a system("stty min 1") at a suitable point in the program.
- Equivalent to
- struct termio termio;
- ioctl(1,TCGETA,&termio);
- termio.c_cc[VMIN] = 1;
- ioctl(1,TCSETAF,&termio);
-
- Bruno Haible
- haible@ma2s2.mathematik.uni-karlsruhe.de
-
-