Copyright (c) 1980 The Regents of the University of California.
All rights reserved.
%sccs.include.redist.roff%
@(#)intro.2 6.3 (Berkeley) 04/17/91
.sh 1 Variables .pp Many variables which are used to describe the terminal environment are available to the programmer. They are:
.pp
There are also several
.q #define
constants and types
which are of general usefulness:
.ev 1
.(b L
All rights reserved.
%sccs.include.redist.roff%
@(#)intro.2 6.3 (Berkeley) 04/17/91
.sh 1 Variables .pp Many variables which are used to describe the terminal environment are available to the programmer. They are:
type name description |
WINDOW * curscr |
current version of the screen (terminal screen). |
WINDOW * stdscr |
standard screen. Most updates are usually done here. |
char * Def\*_term |
default terminal type if type cannot be determined |
bool My\*_term |
use the terminal specification in Def\*_term as terminal, |
irrelevant of real terminal type |
char * ttytype |
full name of the current terminal. |
int LINES |
number of lines on the terminal |
int COLS |
number of columns on the terminal |
int ERR |
error flag returned by routines on a fail. |
int OK |
error flag returned by routines when things go right. |
reg storage class ``register'' (e.g., reg int i;\|) bool boolean type, actually a ``char'' (e.g., bool doneit;\|) TRUE boolean ``true'' flag (1). FALSE boolean ``false'' flag (0)..ev .)b .lp