KEYS.H
上传用户:xr_qian
上传日期:2007-01-05
资源大小:443k
文件大小:3k
源码类别:

通讯/手机编程

开发平台:

DOS

  1. // ******************************************************************** //
  2. //                                                                      //
  3. //      KEYS.H                                                          //
  4. //      Copyright (c) 1993, Michael Holmes and Bob Flanders             //
  5. //      C++ Communication Utilities                                     //
  6. //                                                                      //
  7. //      Chapter 7: Receiving a FAX                                      //
  8. //      Last changed in chapter 2                                       //
  9. //                                                                      //
  10. //      This file contains the definitions for extended keyboard        //
  11. //      function and control keys.                                      //
  12. //                                                                      //
  13. // ******************************************************************** //
  14. #define F1          0x100 + 'x3b'          // F1 function key
  15. #define F2          0x100 + 'x3c'          // F2
  16. #define F3          0x100 + 'x3d'          // F3
  17. #define F4          0x100 + 'x3e'          // F4
  18. #define F5          0x100 + 'x3f'          // F5
  19. #define F6          0x100 + 'x40'          // F6
  20. #define F7          0x100 + 'x41'          // F7
  21. #define F8          0x100 + 'x42'          // F8
  22. #define F9          0x100 + 'x43'          // F9
  23. #define F10         0x100 + 'x44'          // F10
  24. #define F11         0x100 + 'x85'          // F11
  25. #define F12         0x100 + 'x86'          // F12
  26. #define UP          0x100 + 'x48'          // up
  27. #define DOWN        0x100 + 'x50'          // down
  28. #define LEFT        0x100 + 'x4b'          // left arrow
  29. #define RIGHT       0x100 + 'x4d'          // right arrow
  30. #define HOME        0x100 + 'x47'          // home
  31. #define END         0x100 + 'x4f'          // end
  32. #define PAGE_UP     0x100 + 'x49'          // page up
  33. #define PAGE_DOWN   0x100 + 'x51'          // page down
  34. #define C_UP        0x100 + 'x8d'          // ctrl up
  35. #define C_DOWN      0x100 + 'x91'          // ctrl down
  36. #define C_LEFT      0x100 + 'x73'          // ctrl left arrow
  37. #define C_RIGHT     0x100 + 'x74'          // ctrl right arrow
  38. #define C_HOME      0x100 + 'x77'          // ctrl home
  39. #define C_END       0x100 + 'x75'          // ctrl end
  40. #define C_PAGE_UP   0x100 + 'x84'          // ctrl page up
  41. #define C_PAGE_DOWN 0x100 + 'x76'          // ctrl page down
  42. #define SPACE       ' '                     // spacebar
  43. #define CR          'r'                    // carriage return
  44. #define LF          'n'                    // linefeed
  45. #define ESC         'x1b'                  // escape
  46. #define BACKSPACE   'b'                    // backspace
  47. #define DELETE      0x100 + 'x53'          // delete key
  48. #define INSERT      0x100 + 'x52'          // insert key
  49. #define TAB         't'                    // tab
  50. #define BELL        "a"                    // bell string