/* Comm define file */ #define MANX #define INTUITION_REV 33L #define GRAPHICS_REV 33L #ifndef SCREENQUIET #define SCREENQUIET 0x0100 #endif #ifdef TRUE #undef TRUE #undef FALSE #endif #define TRUE 1 #define FALSE 0 #define ERROR (-1) #define START TRUE #define STOP FALSE #define ON TRUE #define OFF FALSE /* things for xmodem send and recieve */ #define SECSIZ 0x80 #define TTIME 10 /* number of seconds for timeout */ #define BufSize SECSIZ*64 /* ASCII capture buffer */ #define ERRORMAX 10 /* Max errors before abort */ #define RETRYMAX 10 /* Maximum retrys before abort */ #define SOH 1 /* Start of sector char */ #define EOT 4 /* end of transmission char */ #define ACK 6 /* acknowledge sector transmission */ #define NAK 21 /* error in transmission detected */ #define PAD 0x1a /* character to pad short sectors */ #define CAN 24 /* Cancel character -- abort transmission */ #define SYN 22 /* WXMODEM sync character */ #define DLE 16 /* WXMODEM Data Link Escape character */ #define TIMEOUT -1 /* timeout during receive character */ #define ABORT -2 /* user aborted XMODEM transfer with escape key */ #define OK TRUE /* sector sent OK */ #define XOFF 0x13 /* stop sender */ #define XON 0x11 /* start sender */ #define CSI 0x9B /* console device escape sequence */ /* defines required for phone library */ #define PHONELIB "Comm.Phone" /* file containing library */ #define PHONEDIR "SYS:" /* look here if not in default */ #define MAXPHONE 44 /* max number of numbers in lib */ #define NAMESIZE 17 /* max name length */ #define NBRSIZE 17 /* phone number size */ #define BAUDSIZE 9 /* baud rate size */ #define COMTSIZE 30 /* comment length */ #define MAXLINE NAMESIZE + NBRSIZE + BAUDSIZE + COMTSIZE + 2 #define NUMBUFS 128 /* number of sectors we'd like in diskbuff */ #define MAXFNAME 80 /* Max file name length */ #define KEYFILE "Comm.Keys" /* define maximum number of baud rate menu items */ #define RSMAX 6 /* Baud menu */ /* RAW key definitions. Change defines to return values you would like to see. ex. CUP could return 0x80 for up arrow CDN could return 0x81 for down arrow Could also define function keys and shift function keys. but easily added into the shift[] array. Any change to these defines will require keyboard.c to be re-compiled */ #define KEYMACS 20 /* keyboard macros */ #define TOGPRT 0xFE #define TOGCAP 0xFD #define TOGSCR 0xFC #ifndef TAB #define TAB 9 /* Tab */ #endif #define UND 0 /* Undefined Key */ #define BKS 8 /* Backspace */ #define ENT 13 /* Enter */ #define RET 13 /* Return */ #define ESC 0x1B /* Escape */ #define DEL 0x7F /* Delete */ #define CUP 0 /* Cursor Up */ #define CDN 0 /* Cursor Down */ #define CFW 0 /* Cursor Forward*/ #define CBK 0 /* Cursor Back */ #define FN1 128 /* Function 1 */ #define FN2 129 /* Function 2 */ #define FN3 130 /* Function 3 */ #define FN4 131 /* Function 4 */ #define FN5 132 /* Function 5 */ #define FN6 133 /* Function 6 */ #define FN7 134 /* Function 7 */ #define FN8 135 /* Function 8 */ #define FN9 136 /* Function 9 */ #define F10 137 /* Function 10 */ /* shift function keys */ #define SF1 138 /* Function 1 */ #define SF2 139 /* Function 2 */ #define SF3 140 /* Function 3 */ #define SF4 141 /* Function 4 */ #define SF5 142 /* Function 5 */ #define SF6 143 /* Function 6 */ #define SF7 144 /* Function 7 */ #define SF8 145 /* Function 8 */ #define SF9 146 /* Function 9 */ #define S10 147 /* Function 10 */ #define SHH 148 /* Shift HELP */ #define HLP 149 /* Help */ #define LSH 0 /* Left Shift */ #define RSH 0 /* Right Shift */ #define CAP 0 /* Caps Lock */ #define CTL 0 /* Control */ #define LAL 0 /* Left ALT */ #define RAL 0 /* Right ALT */ #define LAM 0 /* Left Amiga */ #define RAM 0 /* Right Amiga */ #define LMB 0 /* Left Mouse */ #define RMB 0 /* Right Mouse */ #define MMB 0 /* Middle Mouse */ #define APS 0x27 /* Single Quote */ #define SLH '\\' /* Back slash */ /* for debug */ #define NOMASK 1 #define SHOWERR 2 #define SHOWHEX 4 #define SHOWPROT 0x10 /* system colors */ #define BLUE 0 #define WHITE 1 #define BLACK 2 #define ORANGE 3 /* requester dimensions */ #define REQWIDTH 260 #define REQHEIGHT 40 #define REQXPOS 1 #define REQYPOS 10 /* tx & rx window sizes */ #define WIDTH 640 #define TXHEIGHT 42 #define TXPOSN 0 #define TYPOSN 148 #define RXHEIGHT 148 #define RXPOSN 0 #define RYPOSN 0 /* menu events */ #define ASCCAPT 1 #define ASCSEND 2 #define XMDRECV 3 #define XMDSEND 4 #define EDITMAC 5 #define LOADPHONE 6 #define LOADKEYS 7 #define SAVEKEYS 8 #define WXMRECV 9 #define RSBUFSIZ 128 #define PROPSIZE 8 #define DOS11 31 #define DOS12 33 #define BEEPSIZE 10L #define BEEP_PERIOD 200L #define BEEPCYCLES 200L