home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / MAILMIND.ZOO / PCKEYS.H < prev   
Text File  |  1990-11-09  |  2KB  |  68 lines

  1. #ifndef PCKEYS_H
  2. #define PCKEYS_H
  3.  
  4. /* pckeys.h - codes for IBM PC keys using GETKEY macro
  5.  * Division of Cancer Prevention & Control, NCI
  6.  */
  7.  
  8. /* Revision history:
  9.  * 1.02  tam  11/09/90  add DELKEY
  10.  * 1.01  tam  10/15/90  add ALTL
  11.  * 1.0   tam  08/24/90  split off pckeys.h from local.h
  12.  */
  13.  
  14. /* macro */
  15. #define GETKEY(ch) (ch = (((ch = getch()) == '\0') ? (getch() + 256) : (ch)))
  16.  
  17. /* key codes */
  18. #define UPARROW      328 
  19. #define DOWNARROW    336
  20. #define LEFTARROW    331
  21. #define RIGHTARROW   333
  22. #define HOMEKEY      327
  23. #define ENDKEY       335
  24. #define DELKEY       339
  25. #define PGUP         329
  26. #define PGDN         337
  27. #define CTLC         3
  28. #define CTLE         5
  29. #define BELL         7
  30. #define BS           8
  31. #define TAB          9
  32. #define NEWLINE      10
  33. #define LF           10
  34. #define FF           12
  35. #define CR           13
  36. #define XON          17
  37. #define XOFF         18
  38. #define CTLZ         26
  39. #define ESC          27
  40. #define SPACE        32
  41. #define DEL          127
  42. #define ALTA         286
  43. #define ALTB         304
  44. #define ALTC         302
  45. #define ALTD         288
  46. #define ALTG         290
  47. #define ALTH         291
  48. #define ALTL         294
  49. #define ALTO         280
  50. #define ALTR         285
  51. #define ALTS         287
  52. #define ALTT         276
  53. #define ALTU         278
  54. #define ALTX         301
  55. #define F1           315
  56. #define F2           316
  57. #define F3           317
  58. #define F4           318
  59. #define F5           319
  60. #define F6           320
  61. #define F7           321
  62. #define F8           322
  63. #define F9           323
  64. #define F10          324
  65.  
  66. #endif /* pckeys.h */
  67.  
  68.