home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / calend3.zip / INKEY.CH < prev    next >
Text File  |  1990-09-15  |  5KB  |  143 lines

  1. /***
  2. *       inkey.ch
  3. *       Standard INKEY() key-code definitions
  4. *       Copyright (c) 1990 Nantucket Corp.  All rights reserved.
  5. */
  6.  
  7. // Cursor movement keys
  8. #define K_UP            5        // Uparrow, Ctrl-E
  9. #define K_DOWN            24        // Dnarrow, Ctrl-X
  10. #define K_LEFT            19        // Leftarrow, Ctrl-S
  11. #define K_RIGHT            4        // Rightarrow, Ctrl-D
  12. #define K_HOME            1        // Home, Ctrl-A
  13. #define K_END            6        // End, Ctrl-F
  14. #define K_PGUP            18        // PgUp, Ctrl-R
  15. #define K_PGDN            3        // PgDn, Ctrl-C
  16. #define K_CTRL_LEFT        26        // Ctrl-Leftarrow, Ctrl-Z
  17. #define K_CTRL_RIGHT      2        // Ctrl-Rightarrow, Ctrl-B
  18. #define K_CTRL_HOME        29        // Ctrl-Home, Ctrl-]
  19. #define K_CTRL_END        23        // Ctrl-End, Ctrl-W
  20. #define K_CTRL_PGUP        31        // Ctrl-PgUp, Ctrl-Hyphen
  21. #define K_CTRL_PGDN        30        // Ctrl-PgDn, Ctrl-^
  22. #define K_CTRL_RET        10        // Ctrl-Return
  23.  
  24. #define K_ESC            27        // Esc, Ctrl-[
  25. #define K_RETURN        13        // Return, Ctrl-M
  26. #define K_ENTER            13        // Enter, Ctrl-M
  27.  
  28.  
  29. // Editing keys
  30. #define K_INS            22        // Ins, Ctrl-V
  31. #define K_DEL            7        // Del, Ctrl-G
  32. #define K_BS            8        // Backspace, Ctrl-H
  33. #define K_CTRL_BS        127        // Ctrl-Backspace
  34. #define K_TAB            9        // Tab, Ctrl-I
  35. #define K_SH_TAB        271        // Shift-Tab
  36.  
  37.  
  38. // Control keys
  39. #define K_CTRL_A        1        // Ctrl-A, Home
  40. #define K_CTRL_B        2        // Ctrl-B, Ctrl-Rightarrow
  41. #define K_CTRL_C        3        // Ctrl-C, PgDn, Ctrl-ScrollLock
  42. #define K_CTRL_D        4        // Ctrl-D, Rightarrow
  43. #define K_CTRL_E        5        // Ctrl-E, Uparrow
  44. #define K_CTRL_F        6        // Ctrl-F, End
  45. #define K_CTRL_G        7        // Ctrl-G, Del
  46. #define K_CTRL_H        8        // Ctrl-H, Backspace
  47. #define K_CTRL_I        9        // Ctrl-I, Tab
  48. #define K_CTRL_J        10        // Ctrl-J
  49. #define K_CTRL_K        11        // Ctrl-K
  50. #define K_CTRL_L        12        // Ctrl-L
  51. #define K_CTRL_M        13        // Ctrl-M, Return
  52. #define K_CTRL_N        14        // Ctrl-N
  53. #define K_CTRL_O        15        // Ctrl-O
  54. #define K_CTRL_P        16        // Ctrl-P
  55. #define K_CTRL_Q        17        // Ctrl-Q
  56. #define K_CTRL_R        18        // Ctrl-R, PgUp
  57. #define K_CTRL_S        19        // Ctrl-S, Leftarrow
  58. #define K_CTRL_T        20        // Ctrl-T
  59. #define K_CTRL_U        21        // Ctrl-U
  60. #define K_CTRL_V        22        // Ctrl-V, Ins
  61. #define K_CTRL_W        23        // Ctrl-W, Ctrl-End
  62. #define K_CTRL_X        24        // Ctrl-X, Dnarrow
  63. #define K_CTRL_Y        25        // Ctrl-Y
  64. #define K_CTRL_Z        26        // Ctrl-Z, Ctrl-Leftarrow
  65.  
  66.  
  67. // Alt keys
  68. #define K_ALT_A            286        // Alt-A
  69. #define K_ALT_B            304        // Alt-B
  70. #define K_ALT_C            302        // Alt-C
  71. #define K_ALT_D            288        // Alt-D
  72. #define K_ALT_E            274        // Alt-E
  73. #define K_ALT_F            289        // Alt-F
  74. #define K_ALT_G            290        // Alt-G
  75. #define K_ALT_H            291        // Alt-H
  76. #define K_ALT_I            279        // Alt-I
  77. #define K_ALT_J            292        // Alt-J
  78. #define K_ALT_K            293        // Alt-K
  79. #define K_ALT_L            294        // Alt-L
  80. #define K_ALT_M            306        // Alt-M
  81. #define K_ALT_N            305        // Alt-N
  82. #define K_ALT_O            280        // Alt-O
  83. #define K_ALT_P            281        // Alt-P
  84. #define K_ALT_Q            272        // Alt-Q
  85. #define K_ALT_R            275        // Alt-R
  86. #define K_ALT_S            287        // Alt-S
  87. #define K_ALT_T            276        // Alt-T
  88. #define K_ALT_U            278        // Alt-U
  89. #define K_ALT_V            303        // Alt-V
  90. #define K_ALT_W            273        // Alt-W
  91. #define K_ALT_X            301        // Alt-X
  92. #define K_ALT_Y            277        // Alt-Y
  93. #define K_ALT_Z            300        // Alt-Z
  94.  
  95. // Function keys
  96. #define K_F1            28        // F1, Ctrl-\
  97. #define K_F2            -1        // F2
  98. #define K_F3            -2        // F3
  99. #define K_F4            -3        // F4
  100. #define K_F5            -4        // F5
  101. #define K_F6            -5        // F6
  102. #define K_F7            -6        // F7
  103. #define K_F8            -7        // F8
  104. #define K_F9            -8        // F9
  105. #define K_F10            -9        // F10
  106.  
  107. // Control-function keys
  108. #define K_CTRL_F1       -20        // Ctrl-F1
  109. #define K_CTRL_F2       -21        // Ctrl-F2
  110. #define K_CTRL_F3       -22        // Ctrl-F4
  111. #define K_CTRL_F4       -23        // Ctrl-F3
  112. #define K_CTRL_F5       -24        // Ctrl-F5
  113. #define K_CTRL_F6       -25        // Ctrl-F6
  114. #define K_CTRL_F7       -26        // Ctrl-F7
  115. #define K_CTRL_F8       -27        // Ctrl-F8
  116. #define K_CTRL_F9       -28        // Ctrl-F9
  117. #define K_CTRL_F10      -29        // Ctrl-F10
  118.  
  119. // Alt-function keys
  120. #define K_ALT_F1        -30        // Alt-F1
  121. #define K_ALT_F2        -31        // Alt-F2
  122. #define K_ALT_F3        -32        // Alt-F3
  123. #define K_ALT_F4        -33        // Alt-F4
  124. #define K_ALT_F5        -34        // Alt-F5
  125. #define K_ALT_F6        -35        // Alt-F6
  126. #define K_ALT_F7        -36        // Alt-F7
  127. #define K_ALT_F8        -37        // Alt-F8
  128. #define K_ALT_F9        -38        // Alt-F9
  129. #define K_ALT_F10        -39        // Alt-F10
  130.  
  131. // Shift-function keys
  132. #define K_SH_F1            -10        // Shift-F1
  133. #define K_SH_F2            -11        // Shift-F2
  134. #define K_SH_F3            -12        // Shift-F3
  135. #define K_SH_F4            -13        // Shift-F4
  136. #define K_SH_F5            -14        // Shift-F5
  137. #define K_SH_F6            -15        // Shift-F6
  138. #define K_SH_F7            -16        // Shift-F7
  139. #define K_SH_F8            -17        // Shift-F8
  140. #define K_SH_F9            -18        // Shift-F9
  141. #define K_SH_F10        -19        // Shift-F10
  142.  
  143.