1: /************************************************************************* 2: * This program is copyright (C) 1985, 1986 by Jonathan Payne. It is * 3: * provided to you without charge for use only on a licensed Unix * 4: * system. You may copy JOVE provided that this notice is included with * 5: * the copy. You may not sell copies of this program or versions * 6: * modified for use on microcomputer systems, unless the copies are * 7: * included with a Unix system distribution and the source is provided. * 8: *************************************************************************/ 9: 10: /* Termcap definitions */ 11: 12: extern char 13: *UP, /* Scroll reverse, or up */ 14: *CS, /* If on vt100 */ 15: *SO, /* Start standout */ 16: *SE, /* End standout */ 17: *CM, /* The cursor motion string */ 18: *CL, /* Clear screen */ 19: *CE, /* Clear to end of line */ 20: *HO, /* Home cursor */ 21: *AL, /* Addline (insert line) */ 22: *DL, /* Delete line */ 23: *VS, /* Visual start */ 24: *VE, /* Visual end */ 25: *KS, /* Keypad mode start */ 26: *KE, /* Keypad mode end */ 27: *TI, /* Cursor addressing start */ 28: *TE, /* Cursor addressing end */ 29: *IC, /* Insert char */ 30: *DC, /* Delete char */ 31: *IM, /* Insert mode */ 32: *EI, /* End insert mode */ 33: *LL, /* Last line, first column */ 34: *M_IC, /* Insert char with arg */ 35: *M_DC, /* Delete char with arg */ 36: *M_AL, /* Insert line with arg */ 37: *M_DL, /* Delete line with arg */ 38: *SF, /* Scroll forward */ 39: *SR, /* Scroll reverse */ 40: *SP, /* Send cursor position */ 41: #ifdef LSRHS 42: *RS, /* reverse video start */ 43: *RE, /* reverse video end */ 44: #endif 45: *VB, /* visible bell */ 46: *IP, /* insert pad after character inserted */ 47: *lPC; 48: 49: extern int 50: LI, /* number of lines */ 51: ILI, /* number of internal lines */ 52: CO, /* number of columns */ 53: 54: UL, /* underscores don't replace chars already on screen */ 55: MI, /* okay to move while in insert mode */ 56: SG, /* number of magic cookies left by SO and SE */ 57: 58: TABS, /* whether we are in tabs mode */ 59: UPlen, /* length of the UP string */ 60: HOlen, /* length of Home string */ 61: LLlen; /* length of lower string */ 62: 63: extern char 64: PC, 65: *BC; /* back space */ 66: 67: extern int ospeed;