home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1555 / io.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  2.1 KB  |  100 lines

  1. /*********************************************************************
  2. *
  3. *    io.h
  4. *
  5. *********************************************************************/
  6.  
  7. /*
  8. $Id: io.h,v 1.4 90/04/05 16:17:29 mark Exp Locker: mark $
  9. $Log:    io.h,v $
  10.  * Revision 1.4  90/04/05  16:17:29  mark
  11.  * corrected for lint
  12.  * 
  13.  * Revision 1.3  90/02/07  14:42:56  mark
  14.  * *** empty log message ***
  15.  * 
  16.  * Revision 1.2  90/01/24  23:17:14  mark
  17.  * added termio.h to include list
  18.  * 
  19.  * Revision 1.1  90/01/23  16:32:34  mark
  20.  * Initial revision
  21.  * 
  22. */
  23.  
  24. #define DEL        127 
  25. #define BELL       7
  26. #define BS         8
  27. #define TB         9
  28. #define SP         32
  29. #define TILDE      '~'
  30. #define SELECT     13               /* Enter */
  31. #define QUIT       13
  32. #define CR         13
  33. #define NL         10
  34. #define F1        -1
  35. #define F2        -2
  36. #define F3        -3
  37. #define F4        -4
  38. #define F5        -5
  39. #define F6        -6
  40. #define F7        -7
  41. #define F8        -8
  42. #define F9        -9
  43. #define F10       -10
  44. #define ESC       27             /* Escape */
  45. #define UP        -101            /* Up arrow as returned by compare() */
  46. #define DOWN      -102            /* Down arrow as returned by compare() */
  47. #define DN        -102
  48. #define LEFT      -103            /* Left arrow as returned by compare() */
  49. #define LF        -103
  50. #define RIGHT     -104            /* Right arrow as returned by compare() */
  51. #define RT        -104
  52. #define PGUP      -105
  53. #define PGDN      -106
  54.  
  55. typedef unsigned short BOOLEAN;
  56. #define FALSE   (0)
  57. #define TRUE    (1)
  58.  
  59. #ifndef DOS_IO
  60. /* terminal screen structure */
  61. #include <termio.h>
  62.  
  63. struct crt_stru {
  64.     char dca[40];
  65.     char cls[10];
  66.     char rev[10];
  67.     char norm[10];
  68.     char eol[10];
  69.     char init[10];
  70.     char close[10];
  71.     char uss[10];
  72.     char use[10];
  73.     int  co;
  74.     int  li;
  75.     int  sg;
  76.     int  ug;
  77.     int  gg;
  78. };
  79.  
  80. /* designated special characters */
  81. struct fkey_stru {
  82.     char up[5];        /* movement */
  83.     char down[5];
  84.     char left[5];
  85.     char right[5];
  86.     char f1[5];        /* function */
  87.     char f2[5];    
  88.     char f3[5];    
  89.     char f4[5];    
  90.     char f5[5];    
  91.     char f6[5];    
  92.     char f7[5];    
  93.     char f8[5];    
  94.     char f9[5];    
  95.     char f10[5];    
  96.     char pu[5];    
  97.     char pd[5];    
  98. };
  99. #endif
  100.