BSD 4_2 development
[unix-history] / usr / doc / curses / intro.2
CommitLineData
67f938de
KA
1.sh 1 Variables
2.pp
3Many variables which are used to describe the terminal environment
4are available to the programmer. They are:
5.TS
6expand;
7lw(6m) lw(8n) lw(50n).
8type name description
9_
10WINDOW * curscr T{
11.fi
12current version of the screen (terminal screen).
13T}
14WINDOW * stdscr T{
15standard screen. Most updates are usually done here.
16T}
17char * Def\*_term T{
18default terminal type if type cannot be determined
19T}
20bool My\*_term T{
21use the terminal specification in \fIDef\*_term\fR as terminal,
22irrelevant of real terminal type
23T}
24char * ttytype T{
25full name of the current terminal.
26T}
27int LINES T{
28number of lines on the terminal
29T}
30int COLS T{
31number of columns on the terminal
32T}
33int ERR T{
34error flag returned by routines on a fail.
35T}
36int OK T{
37error flag returned by routines when things go right.
38T}
39.TE
40.pp
41There are also several
42.q #define
43constants and types
44which are of general usefulness:
45.sp
46.ev 1
47.ta 11n
48.(b L
49.nf
50reg storage class ``register'' (e.g., \fIreg int i;\fR\|)
51bool boolean type, actually a ``char'' (e.g., \fIbool doneit;\fR\|)
52TRUE boolean ``true'' flag (1).
53FALSE boolean ``false'' flag (0).
54.fi
55.ev
56.)b
57.lp