xref: /original-bsd/lib/libcurses/curses.c (revision 942cfc3b)
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.9 (Berkeley) 09/21/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 int	__noqch = 0;			/*
20 					 * If terminal doesn't have
21 					 * insert/delete line capabilities
22 					 * for quick change on refresh.
23 					 */
24 
25 /*
26  * Public.
27  *
28  * XXX
29  * UPPERCASE isn't used by libcurses, and is left for backward
30  * compatibility only.
31  */
32 WINDOW	*curscr;			/* Current screen. */
33 WINDOW	*stdscr;			/* Standard screen. */
34 int	 COLS;				/* Columns on the screen. */
35 int	 LINES;				/* Lines on the screen. */
36 int	 My_term = 0;			/* Use Def_term regardless. */
37 char	*Def_term = "unknown";		/* Default terminal type. */
38 char	 GT;				/* Gtty indicates tabs. */
39 char	 NONL;				/* Term can't hack LF doing a CR. */
40 char	 UPPERCASE;			/* Terminal is uppercase only. */
41 
42 char	AM, BS, CA, DA, EO, HC, HZ, IN, MI, MS, NC, NS, OS,
43 	PC, UL, XB, XN, XT, XS, XX;
44 char	*AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL,
45 	*DM, *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6,
46 	*K7, *K8, *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL,
47 	*KR, *KS, *KU, *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF,
48 	*SO, *SR, *TA, *TE, *TI, *UC, *UE, *UP, *US, *VB, *VS,
49 	*VE, *al, *dl, *sf, *sr,
50 	*AL_PARM, *DL_PARM, *UP_PARM, *DOWN_PARM, *LEFT_PARM,
51 	*RIGHT_PARM;
52