1 /* 2 * Copyright (c) 1981 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)curses.c 5.8 (Berkeley) 08/23/92"; 10 #endif /* not lint */ 11 12 #include <curses.h> 13 14 /* Private. */ 15 int __echoit = 1; /* If stty indicates ECHO. */ 16 int __endwin = 0; /* If endwin has been called. */ 17 int __pfast; 18 int __rawmode = 0; /* If stty indicates RAW mode. */ 19 20 /* 21 * Public. 22 * 23 * XXX 24 * UPPERCASE isn't used by libcurses, and is left for backward 25 * compatibility only. 26 */ 27 WINDOW *curscr; /* Current screen. */ 28 WINDOW *stdscr; /* Standard screen. */ 29 int COLS; /* Columns on the screen. */ 30 int LINES; /* Lines on the screen. */ 31 int My_term = 0; /* Use Def_term regardless. */ 32 char *Def_term = "unknown"; /* Default terminal type. */ 33 char GT; /* Gtty indicates tabs. */ 34 char NONL; /* Term can't hack LF doing a CR. */ 35 char UPPERCASE; /* Terminal is uppercase only. */ 36 37 char AM, BS, CA, DA, EO, HC, HZ, IN, MI, MS, NC, NS, OS, 38 PC, UL, XB, XN, XT, XS, XX; 39 char *AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL, 40 *DM, *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6, 41 *K7, *K8, *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL, 42 *KR, *KS, *KU, *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF, 43 *SO, *SR, *TA, *TE, *TI, *UC, *UE, *UP, *US, *VB, *VS, 44 *VE, 45 *AL_PARM, *DL_PARM, *UP_PARM, *DOWN_PARM, *LEFT_PARM, 46 *RIGHT_PARM; 47