home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / pub / uniflex / uftcap.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  2KB  |  55 lines

  1. /*  Terminal Capability Structure Definition */
  2.  
  3. #define STRSIZE 384 /* Size of string area */
  4.  
  5. struct ttycap {
  6.    char    c_rows;     /* Number of rows */
  7.    char    c_cols;     /* Number of columns */
  8.    char    c_inxy;     /* Invert x and y when positioning */
  9.    char    c_wait;     /* Screen settling time */
  10.    char    *c_home;    /* Home up */
  11.    char    *c_up;      /* Cursor up */
  12.    char    *c_down;    /* Cursor down */
  13.    char    *c_left;    /* Cursor left */
  14.    char    *c_right;   /* Cursor right */
  15.    char    *c_clear;   /* Clear screen */
  16.    char    *c_pos;     /* Position to x y */
  17.    char    *c_init;    /* Initialize terminal */
  18.    char    *c_blank;   /* Blank to end of current line */
  19.    char    *c_backg;   /* Set background mode */
  20.    char    *c_foreg;   /* Set foreground mode */
  21.    char    *c_darrow;  /* Down arrow key */
  22.    char    *c_uarrow;  /* Up arrow key */
  23.    char    *c_larrow;  /* Left arrow key */
  24.    char    *c_rarrow;  /* Right arrow key */
  25.    char    *c_hmkey;   /* Home key */
  26.    char    *c_fn0;     /* Function key 0 */
  27.    char    *c_fn1;     /* Function key 1 */
  28.    char    *c_fn2;     /* Function key 2 */
  29.    char    *c_fn3;     /* Function key 3 */
  30.    char    *c_fn4;     /* Function key 4 */
  31.    char    *c_fn5;     /* Function key 5 */
  32.    char    *c_fn6;     /* Function key 6 */
  33.    char    *c_fn7;     /* Function key 7 */
  34.    char    *c_fn8;     /* Function key 8 */
  35.    char    *c_fn9;     /* Function key 9 */
  36.    char    *c_curon;   /* Curson on */
  37.    char    *c_curoff;  /* Curson off */
  38.    char    *c_bc;      /* bc ? */
  39.    char    *c_uc;      /* uc ? */
  40.    char    *c_inslin;  /* Insert line */
  41.    char    *c_dellin;  /* Delete line */
  42.    char    *c_inschr;  /* Insert character */
  43.    char    *c_delchr;  /* Delete character */
  44.    char    *spare[28]; /* Spare functions */
  45.    char    c_caps[STRSIZE];/* Capability strings */
  46. } ;
  47.  
  48. #define HOME_KEY -1
  49. #define UP_KEY -2
  50. #define DOWN_KEY -3
  51. #define LEFT_KEY -4
  52. #define RIGHT_KEY -5
  53. #define KEY(WHICH) (-10-WHICH)
  54. #define NO_DATA -100
  55.