home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcoral16.zip / M_KEY.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  2KB  |  80 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef  _AUTOMATE_H_
  16. #define  _AUTOMATE_H_
  17.  
  18. #define MAXREPEAT    9999
  19. #define KEY        10
  20. #define CONTROL        11
  21. #define CONTROL_AND_KEY    12
  22. #define ESCAPE        0x1b
  23. #define CONTROL_AND_X    14
  24. #define SPECIAL        15
  25. #define ARROW        16
  26.  
  27. #define REPEAT        17
  28.  
  29. #define    RETURN        0x0d
  30. #define    LINEFEED    0x0a
  31. #define    BACKSPACE    0x08
  32. #define    DELETE        0x7f
  33. #define    TAB        0x09
  34.  
  35. #define Ctr_sp        0x00
  36. #define    CtrA        0x01
  37. #define    CtrB        0x02
  38. #define    CtrC        0x03
  39. #define    CtrD        0x04
  40. #define    CtrE        0x05
  41. #define    CtrF        0x06
  42. #define    CtrG        0x07
  43. #define    CtrH        0x08
  44. #define    CtrI        0x09
  45. #define    CtrJ        0x0a
  46. #define    CtrK        0x0b
  47. #define    CtrL        0x0c
  48. #define    CtrM        0x0d
  49. #define    CtrN        0x0e
  50. #define    CtrO        0x0f
  51. #define    CtrP        0x10
  52. #define    CtrQ        0x11
  53. #define    CtrR        0x12
  54. #define    CtrS        0x13
  55. #define    CtrT        0x14
  56. #define    CtrU        0x15
  57. #define    CtrV        0x16
  58. #define    CtrW        0x17
  59. #define    CtrX        0x18
  60. #define    CtrY        0x19
  61. #define CtrZ        0x1a
  62.  
  63. typedef struct {
  64.     int    type;
  65.     char    ch;
  66. } InfosKey;
  67.  
  68.  
  69. typedef struct {
  70.     int    type;
  71.     int     (* fnt) ();
  72.     int    dest_stat;
  73. } Trans;
  74.  
  75. typedef struct { 
  76.   Trans trans[8];
  77. } ST;
  78.  
  79. #endif /* _AUTOMATE_H_ */
  80.