home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11110 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.2 KB

  1. Xref: sparky comp.unix.bsd:11110 comp.lang.c:19516
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!umn.edu!news.d.umn.edu!ub.d.umn.edu!not-for-mail
  3. From: cbusch@ub.d.umn.edu (Chris)
  4. Newsgroups: comp.unix.bsd,comp.lang.c
  5. Subject: a unix terminal question
  6. Date: 10 Jan 1993 20:14:44 -0600
  7. Organization: University of Minnesota, Duluth
  8. Lines: 16
  9. Message-ID: <1iql6kINNisk@ub.d.umn.edu>
  10. NNTP-Posting-Host: ub.d.umn.edu
  11.  
  12.  
  13.    How does one read in a character from standard input without having
  14. the program wait for the key.  Basically, I want to do something like:
  15.     if(kbhit()) c=getch();
  16. Except that is not standard, and I want it to work on all platforms.
  17. Thanx. 
  18.  
  19. --
  20. -=-=-=-=-=-=-=-=-= Chris Busch     cbusch@ub.d.umn.edu =-=-=-=-=-=-=-=-=-=-
  21.  C(o_o))        _                        "The use of COBOL cripples the
  22.    (=)         (_ -|- -|- is the         mind; its teaching should, 
  23.   --|--        language of choice.       therefore, be reguarded as a
  24.    /^\      Protest the use of BASIC!    criminal offense." -E.W. Dijkstra
  25. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  26. Wanted: Cheap run-of-the-mill standard VGA board. 
  27. Wanted: RC airplane engines, radios, planes, etc
  28.