ecuxkey.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*+-------------------------------------------------------------------------
  2. ecuxkey.h -- function key single char value mapping
  3. wht@wht.net
  4. --------------------------------------------------------------------------*/
  5. /*+:EDITS:*/
  6. /*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
  7. /*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
  8. /*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  9. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  10. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  11. /*:01-12-1995-15:19-wht@n4hgf-apply Andrew Chernov 8-bit clean+FreeBSD patch */
  12. /*:05-04-1994-04:39-wht@n4hgf-ECU release 3.30 */
  13. /*:09-17-1992-05:16-wht@n4hgf-finally, 0xE1-0xFA as promised in 3.10 */
  14. /*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
  15. /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  16. /*:03-27-1992-16:21-wht@n4hgf-re-include protection for all .h files */
  17. /*:09-03-1991-23:16-wht@n4hgf2-alt-[a-z] starts w/0xE1: crisp compatibility */
  18. /*:08-28-1991-14:07-wht@n4hgf2-SVR4 cleanup by aega84!lh */
  19. /*:07-25-1991-12:57-wht@n4hgf-ECU release 3.10 */
  20. /*:05-02-1991-01:57-r@n4hgf-alt-[a-z] range moved from 0x80-0x99 to 0xE0-0xF9 */
  21. /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  22. #ifndef _ecuxkey_h
  23. #define _ecuxkey_h
  24. /*
  25. * these are not changeable: they map to the last character in
  26. * an AT/"ANSI" function key sequence
  27. */
  28. #define XFcurup (0x100 | 'A')
  29. #define XFcurdn (0x100 | 'B')
  30. #define XFcurrt (0x100 | 'C')
  31. #define XFcurlf (0x100 | 'D')
  32. #define XFcur5 (0x100 | 'E')
  33. #define XFend (0x100 | 'F')
  34. #define XFpgdn (0x100 | 'G')
  35. #define XFhome (0x100 | 'H')
  36. #define XFpgup (0x100 | 'I')
  37. #define XFins (0x100 | 'L')
  38. #define XF1 (0x100 | 'M')
  39. #define XF2 (0x100 | 'N')
  40. #define XF3 (0x100 | 'O')
  41. #define XF4 (0x100 | 'P')
  42. #define XF5 (0x100 | 'Q')
  43. #define XF6 (0x100 | 'R')
  44. #define XF7 (0x100 | 'S')
  45. #define XF8 (0x100 | 'T')
  46. #define XF9 (0x100 | 'U')
  47. #define XF10 (0x100 | 'V')
  48. #define XF11 (0x100 | 'W')
  49. #define XF12 (0x100 | 'X')
  50. #define XFbktab (0x100 | 'Z')
  51. /*
  52. * special codes for non-ANSI keyboard support
  53. * These are really cleverly disguised magic numbers:
  54. * they HAVE to have the values used below.
  55. */
  56. #define XF_no_way (0x100 | 0xFE)
  57. #define XF_not_yet (0x100 | 0xFF)
  58. /*
  59. * extended ALT+[a-z] codes
  60. */
  61. #define XF_ALTA (0x100 | 0xE1) /* depends on /usr/lib/keyboard keys ... */
  62. #define XF_ALTZ ((unsigned)((0x100 | 0xE1)+'z'-'a')) /* ... mapping ALT-a to
  63. * 0xE0, etc */
  64. #endif /* _ecuxkey_h */
  65. /* vi: set tabstop=4 shiftwidth=4: */
  66. /* end of ecuxkey.h */