home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d832 / term.lha / Term / term-3.1-Source.lha / termExtras.h < prev    next >
C/C++ Source or Header  |  1993-02-12  |  4KB  |  135 lines

  1. /*
  2. **    termExtras.h
  3. **
  4. **    Extra symbol definition file
  5. **
  6. **    Copyright © 1990-1993 by Olaf `Olsen' Barthel & MXM
  7. **        All Rights Reserved
  8. */
  9.  
  10.     /* Special character codes. */
  11.  
  12. #define XOF '\21'
  13. #define XON '\23'
  14.  
  15. #define BEL '\a'
  16. #define VTB '\v'
  17. #define TAB '\t'
  18. #define BKS '\b'
  19. #define ENT '\n'
  20. #define RET '\r'
  21. #define ESC '\033'
  22. #define DEL '\177'
  23. #define FFD '\f'
  24. #define CAN '\030'
  25. #define SUB '\032'
  26. #define ENQ '\005'
  27. #define SI  '\016'
  28. #define SO  '\017'
  29.  
  30.     /* Internally handled control keys. */
  31.  
  32. #define CUP 150
  33. #define CDN 151
  34. #define CFW 152
  35. #define CBK 153
  36.  
  37. #define FN1 128
  38. #define FN2 129
  39. #define FN3 130
  40. #define FN4 131
  41. #define FN5 132
  42. #define FN6 133
  43. #define FN7 134
  44. #define FN8 135
  45. #define FN9 136
  46. #define F10 137
  47.  
  48. #define HLP 149
  49.  
  50.     /* Control sequence introducer. */
  51.  
  52. #define CSI 155
  53.  
  54.     /* Standard IFF chunk types. */
  55.  
  56. #define ID_8SVX    MAKE_ID('8','S','V','X')    /* Eight bit sampled voice. */
  57. #define ID_VHDR    MAKE_ID('V','H','D','R')    /* Voice header. */
  58. #define ID_FTXT    MAKE_ID('F','T','X','T')    /* Formatted text. */
  59. #define ID_CHRS    MAKE_ID('C','H','R','S')    /* Character data. */
  60. #define ID_BODY    MAKE_ID('B','O','D','Y')    /* Generic data body chunk. */
  61.  
  62.     /* `term' private chunk types. */
  63.  
  64. #define ID_DATE    MAKE_ID('D','A','T','E')    /* Date and time information. */
  65. #define ID_DIAL    MAKE_ID('D','I','A','L')    /* Number of phonebook entries. */
  66. #define ID_FAST    MAKE_ID('F','A','S','T')    /* Fast! macro settings. */
  67. #define ID_HOTK    MAKE_ID('H','O','T','K')    /* Hotkey settings. */
  68. #define ID_KEYS    MAKE_ID('K','E','Y','S')    /* Function key settings. */
  69. #define ID_PHON    MAKE_ID('P','H','O','N')    /* Phonebook data. */
  70. #define ID_PREF    MAKE_ID('P','R','E','F')    /* Preferences data chunk. */
  71. #define ID_PSWD    MAKE_ID('P','S','W','D')    /* Password entry. */
  72. #define ID_RECV    MAKE_ID('R','E','C','V')    /* Translation table data (receiver side). */
  73. #define ID_SEND    MAKE_ID('S','E','N','D')    /* Translation table data (sender side). */
  74. #define ID_SPEK    MAKE_ID('S','P','E','K')    /* Speech settings. */
  75. #define ID_TERM    MAKE_ID('T','E','R','M')    /* `term' data chunk. */
  76. #define ID_VERS    MAKE_ID('V','E','R','S')    /* Version identification. */
  77. #define ID_WIND    MAKE_ID('W','I','N','D')    /* Fast! macro window size and position. */
  78.  
  79.     /* `term' configuration and phonebook file chunk types. */
  80.  
  81. #define ID_SERL    MAKE_ID('S','E','R','L')    /* Serial settings. */
  82. #define ID_MODM    MAKE_ID('M','O','D','M')    /* Modem settings. */
  83. #define ID_COMD    MAKE_ID('C','O','M','D')    /* Command settings. */
  84. #define ID_SCRN    MAKE_ID('S','C','R','N')    /* Screen settings. */
  85. #define ID_TRML    MAKE_ID('T','R','M','L')    /* Terminal setting. */
  86. #define ID_PATH    MAKE_ID('P','A','T','H')    /* Path settings. */
  87. #define ID_MISC    MAKE_ID('M','I','S','C')    /* Misc settings. */
  88. #define ID_CLIP    MAKE_ID('C','L','I','P')    /* Clip settings. */
  89. #define ID_CPTR    MAKE_ID('C','P','T','R')    /* Capture settings. */
  90. #define ID_FILE    MAKE_ID('F','I','L','E')    /* File settings. */
  91. #define ID_EMLN    MAKE_ID('E','M','L','N')    /* Emulation settings. */
  92.  
  93.     /* Some pragmas to make life easier... */
  94.  
  95. #pragma libcall GfxBase SetWriteMask 3D8 0802
  96. #pragma libcall GfxBase GetAPen 35A 801
  97. #pragma libcall GfxBase GetBPen 360 801
  98. #pragma libcall GfxBase GetDrMd 366 801
  99.  
  100.     /* Use a simple address trick instead of the predefined
  101.      * address in amiga.lib.
  102.      */
  103.  
  104. #ifndef custom
  105. #define custom (*(struct Custom *)0xDFF000L)
  106. #endif    /* custom */
  107.  
  108.     /* IFF Sound `8SVX' voice header. */
  109.  
  110. struct Voice8Header
  111. {
  112.     ULONG    oneShotHiSamples,    /* # samples in the high octave 1-shot part */
  113.         repeatHiSamples,    /* # samples in the high octave repeat part */
  114.         samplesPerHiCycle;    /* # samples/cycle in high octave, else 0 */
  115.     UWORD    samplesPerSec;        /* data sampling rate */
  116.     UBYTE    ctOctave,        /* # of octaves of waveforms */
  117.         sCompression;        /* data compression technique used */
  118.     LONG    volume;            /* playback nominal volume from 0 to Unity
  119.                      * (full volume). Map this value into
  120.                      * the output hardware's dynamic range.
  121.                      */
  122. };
  123.  
  124.     /* Custom versions of BeginIO() and NewList(). */
  125.  
  126. extern VOID __asm        _BeginIO(register __a1 struct IORequest *);
  127. extern VOID __asm        _NewList(register __a0 struct List *);
  128.  
  129. #define BeginIO(IORequest)    _BeginIO(IORequest)
  130. #define NewList(List)        _NewList(List)
  131.  
  132.     /* Debugging support should always be available. */
  133.  
  134. extern VOID __stdargs        kprintf(STRPTR,...);
  135.