change default tty_ch to 0; remove for loop which purported to find
[unix-history] / usr / src / lib / libcurses / PSD.doc / intro.2
CommitLineData
ea56bb60
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
66e2adb5 3.\"
ea56bb60
KB
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) %G%
66e2adb5
KM
17.\"
18.sh 1 Variables
19.pp
20Many variables which are used to describe the terminal environment
21are available to the programmer. They are:
22.TS
23expand;
24lw(6m) lw(8n) lw(50n).
25type name description
26_
27WINDOW * curscr T{
28.fi
29current version of the screen (terminal screen).
30T}
31WINDOW * stdscr T{
32standard screen. Most updates are usually done here.
33T}
34char * Def\*_term T{
35default terminal type if type cannot be determined
36T}
37bool My\*_term T{
38use the terminal specification in \fIDef\*_term\fR as terminal,
39irrelevant of real terminal type
40T}
41char * ttytype T{
42full name of the current terminal.
43T}
44int LINES T{
45number of lines on the terminal
46T}
47int COLS T{
48number of columns on the terminal
49T}
50int ERR T{
51error flag returned by routines on a fail.
52T}
53int OK T{
54error flag returned by routines when things go right.
55T}
56.TE
57.pp
58There are also several
59.q #define
60constants and types
61which are of general usefulness:
62.sp
63.ev 1
64.ta 11n
65.(b L
66.nf
be51b2c6
KM
67reg storage class ``register'' (\fIe.g.\fP, \fIreg int i;\fR\|)
68bool boolean type, actually a ``char'' (\fIe.g.\fP, \fIbool doneit;\fR\|)
66e2adb5
KM
69TRUE boolean ``true'' flag (1).
70FALSE boolean ``false'' flag (0).
71.fi
72.ev
73.)b
74.lp