/*     ********     *****       ***    *** 
       ********    *******      ***    ***
       **         ***    ***    ***    *** 
       ****       ***    ***    ***    ***
       ****       ***    ***    ***    ***
       **         ***    ***    ***    ***
       **         ***    ***    ***    ***
       ********    **********    ********
       ********     ****** ***    ******

*/



#define		TRUE	255
#define		FALSE	0
#define		CTRLC	3
#define		CTRLD	4
#define		ENQ	5
#define		CTRLF	6
#define		BELL	7
#define		BS	8
#define		TAB	9
#define		LF	10
#define		CR	13
#define		CTRLL	12
#define		CTRLS	0x13
#define		CTRLX	0x18
#define		CTRLZ	0x1A
#define		SUB	0x1A
#define		CTRLCLBRACK	0x1D
#define		CTRLHAT	0x1E
#define		DEL	0x7F

#define		ESC	0x1B
#define		SPESC	0xFB	/* super escape char */

/* fucntion key literal values */
#define		F1	0x81
#define		F2	0x82
#define		F3	0x83
#define		F4	0x84
#define		F5	0x85
#define		F6	0x86
#define		F7	0x87
#define		F8	0x88
#define		F9	0x89
#define		F10	0x8a
#define		F11	0x8b
#define		F12	0x8c
#define		F13	0x8d
#define		F14	0x8e
#define		F15	0x8f
#define		F16	0x90
#define		F17	0x91
#define		F18	0x92
#define		F19	0x93
#define		F20	0x94
#define		F21	0x95
#define		F22	0x96
#define		F23	0x97
#define		F24	0x98
#define		F25	0x99
#define		F26	0x9a
#define		F27	0x9b
#define		F28	0x9c
#define		F29	0x9d
#define		F30	0x9e

#define		KBUFFSIZE 256	/* circular type ahead size */
/* max string length for function key */
#define		FKEYMAX		250    /* fox */
#define		V5KEYMAX	125    /* 5000 */

/* matrix sizes for characters */
#define		SMALHEIGHT	7	/* actually 8, one blank */
#define 	SMALWIDTH	5   /* actually 6, one blank */
#define 	BIGHEIGHT	13  /* actaully 14, one empty */
#define 	BIGWIDTH	8

#define		NUMCHARS	96	/* printable char set size */
#define		BIGBYTES	14	/* bytes per char in big language */
#define		VERTBYTES	6	/* bytes per char in small horizontal language */
#define		HORZBYTES	8	/* bytes per char in vertical  language */
#define		BIGLANG		1344	/* max language size */

/* GRID equates */
#define		XBASE	60	/* starting positons of grid*/
#define		YBASE	120
#define		CELLWIDTH	16	/* inside dimension of cell */	
#define		XSAMPLE	551	/* starting positons of sample char */
#define		YSAMPLE	246
#define		XLITSAMPLE	329	/* starting positons for small chars*/
#define		YLITSAMPLE	194
#define		BIGDESCEND	4	/* number of pixels descending chars descend */
#define		LITDESCEND	2

#define	CURSHAPE	1
#define BLANKSHAPE	2
#define FILLSHAPE	3

#define DOWNCUR		F24
#define UPCUR		F18
#define LEFTCUR		F20
#define RIGHTCUR	F22
#define DRCUR		F25
#define DLCUR		F23
#define URCUR		F19
#define ULCUR		F17

/* character moving modes for movechar routine */
#define		NOROT	0	/* no rotation */
#define		HtoV	1	/* rotate horizontal to vertical */
#define		VtoH	2	/* rtoate vertical to horizontal*/

#define	KBD	1   /* codes for downloader device spec */
#define	CRT	2

/* basic screen positions of menus */
#define		MAINCOL	2	/* main menu addr */
#define		MAINROW	4
#define		LINECOL	45	/* coloumn for frame line */
#define		SECCOL	50	/* secondary menu addr */
#define		SECROW	4
#define		MENCENT 25	/* offset to center a menu */
#define		PROMPTLINE 22   /* bottoem prompt */
#define		PROMCOL	5
#define		DEFOFF	23	/* offset to start of default col*/
#define		HEADR1	0	
#define		HEADC1	20
#define		HEADR2	1	
#define		HEADC2	18
#define		HEADR3	2	
#define		HEADC3A	24
#define		HEADC3B	6

#define		MENMAX		14

/* menu struct netry numbers */
#define		MAIN	0
#define		CH1	1
#define		CH2	2
#define		CH3	3

/* OVERLAY NUMBERS */
#define		OVLCH	1
#define		OVLKB	2
#define		OVLSR	3
#define		OVLFK	4
#define		OVLGN	5

/* SELECTIONS FOR GENERAL OVERLAY */
#define		OVSBR	1
#define		OVSVD	2
#define		OVSEM	3
#define		OVSCR	4
#define		OVSSZ	5
#define		OVSLG	6
#define		OVSKB	7

#define		NOACT	0xEE  /* no action choice in menu */


