home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20017 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  817 b 

  1. Xref: sparky comp.lang.c:20017 comp.os.msdos.programmer:12297
  2. Path: sparky!uunet!noc.near.net!newshost.williams.edu!93gke
  3. From: 93gke@williams.edu (Just Ask The Axis)
  4. Newsgroups: comp.lang.c,comp.os.msdos.programmer
  5. Subject: Reading the arrow keys... how?
  6. Date: 21 Jan 1993 15:19:53 GMT
  7. Organization: Williams College, Williamstown, MA
  8. Lines: 10
  9. Message-ID: <1jmeupINN4g9@savoy.cc.williams.edu>
  10. NNTP-Posting-Host: hancock.cc.williams.edu
  11.  
  12. I am trying to read the arrow keys from a PC keyboard in C. So far
  13. the calls to getch(), getc(), getchar(), have been unsuccessful
  14. because the keys don't seem to have a corresponding ASCII code (they
  15. seem to send 2 characters..?) I also need to read some regular keys
  16. like Q,S, etc... 
  17. Could someone tell me how to read them directly, please.
  18.  
  19. Greg Ennis
  20. 93gke@cs.williams.edu
  21.  
  22.