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 >
Wrap
C/C++ Source or Header
|
1993-02-12
|
4KB
|
135 lines
/*
** termExtras.h
**
** Extra symbol definition file
**
** Copyright © 1990-1993 by Olaf `Olsen' Barthel & MXM
** All Rights Reserved
*/
/* Special character codes. */
#define XOF '\21'
#define XON '\23'
#define BEL '\a'
#define VTB '\v'
#define TAB '\t'
#define BKS '\b'
#define ENT '\n'
#define RET '\r'
#define ESC '\033'
#define DEL '\177'
#define FFD '\f'
#define CAN '\030'
#define SUB '\032'
#define ENQ '\005'
#define SI '\016'
#define SO '\017'
/* Internally handled control keys. */
#define CUP 150
#define CDN 151
#define CFW 152
#define CBK 153
#define FN1 128
#define FN2 129
#define FN3 130
#define FN4 131
#define FN5 132
#define FN6 133
#define FN7 134
#define FN8 135
#define FN9 136
#define F10 137
#define HLP 149
/* Control sequence introducer. */
#define CSI 155
/* Standard IFF chunk types. */
#define ID_8SVX MAKE_ID('8','S','V','X') /* Eight bit sampled voice. */
#define ID_VHDR MAKE_ID('V','H','D','R') /* Voice header. */
#define ID_FTXT MAKE_ID('F','T','X','T') /* Formatted text. */
#define ID_CHRS MAKE_ID('C','H','R','S') /* Character data. */
#define ID_BODY MAKE_ID('B','O','D','Y') /* Generic data body chunk. */
/* `term' private chunk types. */
#define ID_DATE MAKE_ID('D','A','T','E') /* Date and time information. */
#define ID_DIAL MAKE_ID('D','I','A','L') /* Number of phonebook entries. */
#define ID_FAST MAKE_ID('F','A','S','T') /* Fast! macro settings. */
#define ID_HOTK MAKE_ID('H','O','T','K') /* Hotkey settings. */
#define ID_KEYS MAKE_ID('K','E','Y','S') /* Function key settings. */
#define ID_PHON MAKE_ID('P','H','O','N') /* Phonebook data. */
#define ID_PREF MAKE_ID('P','R','E','F') /* Preferences data chunk. */
#define ID_PSWD MAKE_ID('P','S','W','D') /* Password entry. */
#define ID_RECV MAKE_ID('R','E','C','V') /* Translation table data (receiver side). */
#define ID_SEND MAKE_ID('S','E','N','D') /* Translation table data (sender side). */
#define ID_SPEK MAKE_ID('S','P','E','K') /* Speech settings. */
#define ID_TERM MAKE_ID('T','E','R','M') /* `term' data chunk. */
#define ID_VERS MAKE_ID('V','E','R','S') /* Version identification. */
#define ID_WIND MAKE_ID('W','I','N','D') /* Fast! macro window size and position. */
/* `term' configuration and phonebook file chunk types. */
#define ID_SERL MAKE_ID('S','E','R','L') /* Serial settings. */
#define ID_MODM MAKE_ID('M','O','D','M') /* Modem settings. */
#define ID_COMD MAKE_ID('C','O','M','D') /* Command settings. */
#define ID_SCRN MAKE_ID('S','C','R','N') /* Screen settings. */
#define ID_TRML MAKE_ID('T','R','M','L') /* Terminal setting. */
#define ID_PATH MAKE_ID('P','A','T','H') /* Path settings. */
#define ID_MISC MAKE_ID('M','I','S','C') /* Misc settings. */
#define ID_CLIP MAKE_ID('C','L','I','P') /* Clip settings. */
#define ID_CPTR MAKE_ID('C','P','T','R') /* Capture settings. */
#define ID_FILE MAKE_ID('F','I','L','E') /* File settings. */
#define ID_EMLN MAKE_ID('E','M','L','N') /* Emulation settings. */
/* Some pragmas to make life easier... */
#pragma libcall GfxBase SetWriteMask 3D8 0802
#pragma libcall GfxBase GetAPen 35A 801
#pragma libcall GfxBase GetBPen 360 801
#pragma libcall GfxBase GetDrMd 366 801
/* Use a simple address trick instead of the predefined
* address in amiga.lib.
*/
#ifndef custom
#define custom (*(struct Custom *)0xDFF000L)
#endif /* custom */
/* IFF Sound `8SVX' voice header. */
struct Voice8Header
{
ULONG oneShotHiSamples, /* # samples in the high octave 1-shot part */
repeatHiSamples, /* # samples in the high octave repeat part */
samplesPerHiCycle; /* # samples/cycle in high octave, else 0 */
UWORD samplesPerSec; /* data sampling rate */
UBYTE ctOctave, /* # of octaves of waveforms */
sCompression; /* data compression technique used */
LONG volume; /* playback nominal volume from 0 to Unity
* (full volume). Map this value into
* the output hardware's dynamic range.
*/
};
/* Custom versions of BeginIO() and NewList(). */
extern VOID __asm _BeginIO(register __a1 struct IORequest *);
extern VOID __asm _NewList(register __a0 struct List *);
#define BeginIO(IORequest) _BeginIO(IORequest)
#define NewList(List) _NewList(List)
/* Debugging support should always be available. */
extern VOID __stdargs kprintf(STRPTR,...);