Commit | Line | Data |
---|---|---|
6e1c93d0 | 1 | /* |
2f14f200 KB |
2 | * Copyright (c) 1981 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
c07973a2 | 5 | * %sccs.include.redist.c% |
6e1c93d0 DF |
6 | */ |
7 | ||
8 | #ifndef lint | |
c07973a2 | 9 | static char sccsid[] = "@(#)curses.c 5.7 (Berkeley) %G%"; |
2f14f200 | 10 | #endif /* not lint */ |
6e1c93d0 | 11 | |
07138e1e KA |
12 | /* |
13 | * Define global variables | |
14 | * | |
07138e1e KA |
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 | ||
d20fafb5 | 23 | char ttytype[50], /* long name of tty */ |
07138e1e KA |
24 | *Def_term = "unknown"; /* default terminal type */ |
25 | ||
9ff8fbb7 | 26 | int _tty_ch = 0, /* file channel which is a tty */ |
07138e1e KA |
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 | ||
d45d8bdb | 40 | bool AM, BS, CA, DA, DB, EO, HC, HZ, IN, MI, MS, NC, NS, OS, UL, XB, XN, |
2b6e3652 | 41 | XT, XS, XX; |
d45d8bdb JB |
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; | |
07138e1e | 49 | |
d45d8bdb JB |
50 | /* |
51 | * From the tty modes... | |
52 | */ | |
53 | ||
54 | bool GT, NONL, UPPERCASE, normtty, _pfast; |