home *** CD-ROM | disk | FTP | other *** search
- /*********************************************************************
- *
- * io.h
- *
- *********************************************************************/
-
- /*
- $Id: io.h,v 1.4 90/04/05 16:17:29 mark Exp Locker: mark $
- $Log: io.h,v $
- * Revision 1.4 90/04/05 16:17:29 mark
- * corrected for lint
- *
- * Revision 1.3 90/02/07 14:42:56 mark
- * *** empty log message ***
- *
- * Revision 1.2 90/01/24 23:17:14 mark
- * added termio.h to include list
- *
- * Revision 1.1 90/01/23 16:32:34 mark
- * Initial revision
- *
- */
-
- #define DEL 127
- #define BELL 7
- #define BS 8
- #define TB 9
- #define SP 32
- #define TILDE '~'
- #define SELECT 13 /* Enter */
- #define QUIT 13
- #define CR 13
- #define NL 10
- #define F1 -1
- #define F2 -2
- #define F3 -3
- #define F4 -4
- #define F5 -5
- #define F6 -6
- #define F7 -7
- #define F8 -8
- #define F9 -9
- #define F10 -10
- #define ESC 27 /* Escape */
- #define UP -101 /* Up arrow as returned by compare() */
- #define DOWN -102 /* Down arrow as returned by compare() */
- #define DN -102
- #define LEFT -103 /* Left arrow as returned by compare() */
- #define LF -103
- #define RIGHT -104 /* Right arrow as returned by compare() */
- #define RT -104
- #define PGUP -105
- #define PGDN -106
-
- typedef unsigned short BOOLEAN;
- #define FALSE (0)
- #define TRUE (1)
-
- #ifndef DOS_IO
- /* terminal screen structure */
- #include <termio.h>
-
- struct crt_stru {
- char dca[40];
- char cls[10];
- char rev[10];
- char norm[10];
- char eol[10];
- char init[10];
- char close[10];
- char uss[10];
- char use[10];
- int co;
- int li;
- int sg;
- int ug;
- int gg;
- };
-
- /* designated special characters */
- struct fkey_stru {
- char up[5]; /* movement */
- char down[5];
- char left[5];
- char right[5];
- char f1[5]; /* function */
- char f2[5];
- char f3[5];
- char f4[5];
- char f5[5];
- char f6[5];
- char f7[5];
- char f8[5];
- char f9[5];
- char f10[5];
- char pu[5];
- char pd[5];
- };
- #endif
-