home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3899 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1003 b   |  31 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!ksc
  3. From: ksc@cbnewsk.cb.att.com (kenneth.s.cobler)
  4. Subject: Re: FAQ - keyboard input
  5. Organization: AT&T
  6. Distribution: usa
  7. Date: Fri, 24 Jul 1992 20:36:36 GMT
  8. Message-ID: <1992Jul24.203636.24771@cbnewsk.cb.att.com>
  9. References: <sprice.920723122640@eng.auburn.edu>
  10. Lines: 19
  11.  
  12. In article <sprice.920723122640@eng.auburn.edu> sprice@eng.auburn.edu (Shannon W. Price) writes:
  13. >
  14. >    The three types of input are :
  15. >
  16. >        A single enter (e.g. Press enter to continue...)
  17. Possible solution:
  18.     use getchar() to wait for enter key
  19.     
  20. >        A single character (e.g. a menu selection)
  21.     use getchar() with termio set to return when at least 1 keystroke
  22.     
  23. >        A character string that may have imbedded blanks
  24.     use gets() to get a string
  25.     
  26.  
  27. Kenneth Cobler        ksc@cbnewsk.att.com or ken@ihlpm.att.com
  28. AT&T Bell Laboratories    attmail!cbnewsk!ksc or attmail!ihlpm!ken
  29. 2000 N. Naperville Rd.
  30. Naperville, IL  60566
  31.