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