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.7 (Berkeley) 06/01/90"; 10 #endif /* not lint */ 11 12 /* 13 * Define global variables 14 * 15 */ 16 # include "curses.h" 17 18 bool _echoit = TRUE, /* set if stty indicates ECHO */ 19 _rawmode = FALSE,/* set if stty indicates RAW mode */ 20 My_term = FALSE,/* set if user specifies terminal type */ 21 _endwin = FALSE;/* set if endwin has been called */ 22 23 char ttytype[50], /* long name of tty */ 24 *Def_term = "unknown"; /* default terminal type */ 25 26 int _tty_ch = 0, /* file channel which is a tty */ 27 LINES, /* number of lines allowed on screen */ 28 COLS, /* number of columns allowed on screen */ 29 _res_flg; /* sgtty flags for reseting later */ 30 31 WINDOW *stdscr = NULL, 32 *curscr = NULL; 33 34 # ifdef DEBUG 35 FILE *outf; /* debug output file */ 36 # endif 37 38 SGTTY _tty; /* tty modes */ 39 40 bool AM, BS, CA, DA, DB, EO, HC, HZ, IN, MI, MS, NC, NS, OS, UL, XB, XN, 41 XT, XS, XX; 42 char *AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL, *DM, 43 *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6, *K7, *K8, 44 *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL, *KR, *KS, *KU, 45 *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF, *SO, *SR, *TA, *TE, 46 *TI, *UC, *UE, *UP, *US, *VB, *VS, *VE, *AL_PARM, *DL_PARM, 47 *UP_PARM, *DOWN_PARM, *LEFT_PARM, *RIGHT_PARM; 48 char PC; 49 50 /* 51 * From the tty modes... 52 */ 53 54 bool GT, NONL, UPPERCASE, normtty, _pfast; 55