home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13686 < prev    next >
Encoding:
Text File  |  1992-09-15  |  925 b   |  24 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!utcsri!geac!r-node!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: getting characters
  5. Message-ID: <1992Sep15.122502.15370@druid.uucp>
  6. Date: Tue, 15 Sep 1992 12:25:02 GMT
  7. References: <BuDt1C.38v@usenet.ucs.indiana.edu> <1992Sep11.220512.4332@ima.isc.com>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 13
  10.  
  11. karl@ima.isc.com (Karl Heuer) writes:
  12. >optionally turn off ECHO).  On some Unix variants you may have to turn on the
  13. >CBREAK flag instead.  If you have the curses package and don't mind using it
  14. >for this project, you can use its getch() function, which does this for you.
  15.  
  16. But you still have to set CBREAK first.  Curses supplies cbreak() for this
  17. purpose.
  18.  
  19. -- 
  20. D'Arcy J.M. Cain (darcy@druid.com)  |
  21. D'Arcy Cain Consulting              |   There's no government
  22. Toronto, Ontario, Canada            |   like no government!
  23. +1 416 424 2871          DoD#0082   |
  24.