home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / jove4.9 / part01 / termcap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-25  |  2.2 KB  |  80 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. #define MAXCOLS        256    /* maximum number of columns */
  9.  
  10. #ifndef MAC
  11. #ifndef _TERM
  12.  
  13. /* termcap definitions */
  14.  
  15. extern char
  16.     *UP,    /* Scroll reverse, or up */
  17.     *CS,    /* If on vt100 */
  18.     *SO,    /* Start standout */
  19.     *SE,    /* End standout */
  20.     *CM,    /* The cursor motion string */
  21.     *CL,    /* Clear screen */
  22.     *CE,    /* Clear to end of line */
  23.     *HO,    /* Home cursor */
  24.     *AL,    /* Addline (insert line) */
  25.     *DL,    /* Delete line */
  26.     *VS,    /* Visual start */
  27.     *VE,    /* Visual end */
  28.     *KS,    /* Keypad mode start */
  29.     *KE,    /* Keypad mode end */
  30.     *TI,    /* Cursor addressing start */
  31.     *TE,    /* Cursor addressing end */
  32.     *IC,    /* Insert char */
  33.     *DC,    /* Delete char */
  34.     *IM,    /* Insert mode */
  35.     *EI,    /* End insert mode */
  36.     *LL,    /* Last line, first column */
  37.     *M_IC,    /* Insert char with arg */
  38.     *M_DC,    /* Delete char with arg */
  39.     *M_AL,    /* Insert line with arg */
  40.     *M_DL,    /* Delete line with arg */
  41.     *SF,    /* Scroll forward */
  42.     *SR,    /* Scroll reverse */
  43.     *SP,    /* Send cursor position */
  44.     *VB,    /* visible bell */
  45.     *BL,    /* audible bell */
  46.     *IP,    /* insert pad after character inserted */
  47.     *lPC,
  48.     *NL;    /* newline character (usually \n) */
  49.  
  50. extern int
  51.     LI,        /* number of lines */
  52.     ILI,        /* number of internal lines */
  53.     CO,        /* number of columns */
  54.  
  55.     UL,        /* underscores don't replace chars already on screen */
  56.     MI,        /* okay to move while in insert mode */
  57.     SG,        /* number of magic cookies left by SO and SE */
  58.  
  59.     TABS,        /* whether we are in tabs mode */
  60.     UPlen,        /* length of the UP string */
  61.     HOlen,        /* length of Home string */
  62.     LLlen;        /* length of lower string */
  63.  
  64. extern char
  65.     PC,
  66.     *BC;        /* back space */
  67.  
  68. extern short    ospeed;
  69.  
  70. #endif /* _TERM */
  71.  
  72. #else /* MAC */    
  73. extern int    /* probably should clean this up */
  74.     LI,        /* number of lines */
  75.     ILI,        /* number of internal lines */
  76.     CO,        /* number of columns */
  77.     TABS,
  78.     SG;
  79. #endif /* MAC */
  80.