xref: /original-bsd/lib/libcurses/curses.c (revision b64b0d54)
1 /*
2  * Define global variables
3  *
4  * @(#)curses.c	1.1 (Berkeley) 03/27/83
5  */
6 # include	"curses.h"
7 
8 bool	_echoit		= TRUE,	/* set if stty indicates ECHO		*/
9 	_rawmode	= FALSE,/* set if stty indicates RAW mode	*/
10 	My_term		= FALSE,/* set if user specifies terminal type	*/
11 	_endwin		= FALSE;/* set if endwin has been called	*/
12 
13 char	ttytype[10],		/* long name of tty			*/
14 	*Def_term	= "unknown";	/* default terminal type	*/
15 
16 int	_tty_ch		= 1,	/* file channel which is a tty		*/
17 	LINES,			/* number of lines allowed on screen	*/
18 	COLS,			/* number of columns allowed on screen	*/
19 	_res_flg;		/* sgtty flags for reseting later	*/
20 
21 WINDOW	*stdscr		= NULL,
22 	*curscr		= NULL;
23 
24 # ifdef DEBUG
25 FILE	*outf;			/* debug output file			*/
26 # endif
27 
28 SGTTY	_tty;			/* tty modes				*/
29 
30 bool	AM, BS, CA, DA, DB, EO, GT, HZ, IN, MI, MS, NC, OS, UL, XN,
31 	NONL, UPPERCASE, normtty, _pfast;
32 
33 char	*AL, *BC, *BT, *CD, *CE, *CL, *CM, *DC, *DL, *DM, *DO, *ED,
34 	*EI, *HO, *IC, *IM, *IP, *LL, *MA, *ND, *SE, *SF, *SO, *SR,
35 	*TA, *TE, *TI, *UC, *UE, *UP, *US, *VB, *VE, *VS, PC;
36