|
|
1.1 root 1: .\" Copyright (c) 1980 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted
5: .\" provided that the above copyright notice and this paragraph are
6: .\" duplicated in all such forms and that any documentation,
7: .\" advertising materials, and other materials related to such
8: .\" distribution and use acknowledge that the software was developed
9: .\" by the University of California, Berkeley. The name of the
10: .\" University may not be used to endorse or promote products derived
11: .\" from this software without specific prior written permission.
12: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15: .\"
16: .\" @(#)intro.2 6.2 (Berkeley) 3/17/89
17: .\"
18: .sh 1 Variables
19: .pp
20: Many variables which are used to describe the terminal environment
21: are available to the programmer. They are:
22: .TS
23: expand;
24: lw(6m) lw(8n) lw(50n).
25: type name description
26: _
27: WINDOW * curscr T{
28: .fi
29: current version of the screen (terminal screen).
30: T}
31: WINDOW * stdscr T{
32: standard screen. Most updates are usually done here.
33: T}
34: char * Def\*_term T{
35: default terminal type if type cannot be determined
36: T}
37: bool My\*_term T{
38: use the terminal specification in \fIDef\*_term\fR as terminal,
39: irrelevant of real terminal type
40: T}
41: char * ttytype T{
42: full name of the current terminal.
43: T}
44: int LINES T{
45: number of lines on the terminal
46: T}
47: int COLS T{
48: number of columns on the terminal
49: T}
50: int ERR T{
51: error flag returned by routines on a fail.
52: T}
53: int OK T{
54: error flag returned by routines when things go right.
55: T}
56: .TE
57: .pp
58: There are also several
59: .q #define
60: constants and types
61: which are of general usefulness:
62: .sp
63: .ev 1
64: .ta 11n
65: .(b L
66: .nf
67: reg storage class ``register'' (\fIe.g.\fP, \fIreg int i;\fR\|)
68: bool boolean type, actually a ``char'' (\fIe.g.\fP, \fIbool doneit;\fR\|)
69: TRUE boolean ``true'' flag (1).
70: FALSE boolean ``false'' flag (0).
71: .fi
72: .ev
73: .)b
74: .lp
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.