1 /* 2 * Define global variables 3 * 4 * @(#)curses.c 1.4 (Berkeley) 05/23/85 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, HC, HZ, IN, MI, MS, NC, NS, OS, UL, XB, XN, 31 XT, XS, XX; 32 char *AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL, *DM, 33 *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6, *K7, *K8, 34 *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL, *KR, *KS, *KU, 35 *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF, *SO, *SR, *TA, *TE, 36 *TI, *UC, *UE, *UP, *US, *VB, *VS, *VE, *AL_PARM, *DL_PARM, 37 *UP_PARM, *DOWN_PARM, *LEFT_PARM, *RIGHT_PARM; 38 char PC; 39 40 /* 41 * From the tty modes... 42 */ 43 44 bool GT, NONL, UPPERCASE, normtty, _pfast; 45