home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10573 < prev    next >
Encoding:
Text File  |  1992-09-12  |  997 b   |  30 lines

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