home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: DFÜ und Kommunikation / SOS-DFUE.ISO / programm / dos / utility / pccp076 / emu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-14  |  1.7 KB  |  98 lines

  1. /* Released to the Public Domain in 1992 by Peter Edward Cann. */
  2.  
  3.  
  4. /* Substitution Tokens for Function Sequences */
  5. /* n&0xff00 must be nonzero!!! */
  6.  
  7. #define END 0x0100
  8. #define BINCOL 0x0101
  9. #define BINROW 0x0102
  10. #define ASCDECCOL 0x0103
  11. #define ASCDECROW 0x0104
  12. #define ASCDECSEMILIST 0x0105
  13. #define GRABCHAR 0x0106
  14. #define GRAPHCHAR_T 0x0107
  15.  
  16.  
  17. /* Function Codes for Function Sequences */
  18.  
  19. #define CLEAR 0
  20. #define HOME 1
  21. #define CLREOL 2
  22. #define UP 3
  23. #define DOWN 4
  24. #define LEFT 5
  25. #define RIGHT 6
  26. #define GOTO 7
  27. #define NORMAL 8
  28. #define FAINT 9
  29. #define NOFAINT 10
  30. #define BOLD 11
  31. #define NOBOLD 12
  32. #define BLINK 13
  33. #define NOBLINK 14
  34. #define INVERSE 15
  35. #define NOINVERSE 16
  36. #define UPN 17
  37. #define DOWNN 18
  38. #define LEFTN 19
  39. #define RIGHTN 20
  40. #define ANSIATTRIB 21
  41. #define WRAP 22
  42. #define NOWRAP 23
  43. #define GOTOLINE 24
  44. #define GOTOCOL 25
  45. #define BINATTR 26
  46. #define GRAPHCHAR 27
  47. #define BEGGRAPH 28
  48. #define ENDGRAPH 29
  49. #define TAB 30  /* Non-destructive */
  50. #define BELL 31
  51. #define DTAB 32  /* Destructive */
  52. #define CRLF 33
  53. #define NOOP 34
  54. #define SAVEPOS 35
  55. #define RESTOREPOS 36
  56. #define RESPOND 37
  57. #define ANSICPR 38
  58. #define LASTFUN 38
  59.  
  60.  
  61. /* Miscellaneous */
  62.  
  63. #define NFUNCS 32  /* Number of Sequences */
  64. #define FUNLEN 16
  65.  
  66. #define KEYLEN 16
  67.  
  68. struct emu_s
  69.     {
  70.     struct
  71.         {
  72.         short codes[FUNLEN];
  73.         short func;
  74.         }
  75.         funcs[NFUNCS];
  76.     struct
  77.         {
  78.         short len;
  79.         unsigned char chars[KEYLEN];
  80.         char nullpause_p;
  81.         }
  82.         keys[256];
  83.     unsigned char gchars[256];
  84.     int tophi_p;
  85.     int binrowoff;
  86.     int bincoloff;
  87.     int default_wrap_p;
  88.     int boldmask;
  89.     int faintmask;
  90.     int blinkmask;
  91.     int inversemask;
  92.     int attroffset;
  93.     int firstcoladdr;
  94.     int firstrowaddr;
  95.     };
  96.     
  97. extern struct emu_s emu;
  98.