Document LINES and COLS environment variables.

This commit is contained in:
jdc 2003-04-08 18:57:09 +00:00
parent 7a37df1b93
commit a1a7bef1e4
1 changed files with 19 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: curses_screen.3,v 1.5 2003/02/14 16:29:12 grant Exp $ .\" $NetBSD: curses_screen.3,v 1.6 2003/04/08 18:57:09 jdc Exp $
.\" .\"
.\" Copyright (c) 2002 .\" Copyright (c) 2002
.\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au) .\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au)
@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" .\"
.Dd August 12, 2002 .Dd April 8, 2003
.Dt CURSES_SCREEN 3 .Dt CURSES_SCREEN 3
.Os .Os
.Sh NAME .Sh NAME
@ -64,6 +64,10 @@
.Fn resizeterm "int lines" "int cols" .Fn resizeterm "int lines" "int cols"
.Ft int .Ft int
.Fn setterm "char *name" .Fn setterm "char *name"
.Ft extern int
.Dv LINES
.Ft extern int
.Dv COLS
.Sh DESCRIPTION .Sh DESCRIPTION
These functions initialize terminals and screens. These functions initialize terminals and screens.
.Pp .Pp
@ -113,6 +117,16 @@ The exception to this rule is the
.Fn newterm .Fn newterm
call which may be called prior to call which may be called prior to
.Fn initscr . .Fn initscr .
The size of the curses screen is determined by checking the
.Xr tty 4
size and then the
.Xr termcap 5
entries for the terminal type.
If the environment variables
.Dv LINES
or
.Dv COLS
are set, then these will be used instead.
.Pp .Pp
The The
.Fn isendwin .Fn isendwin
@ -153,13 +167,13 @@ An error occurred in the function.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr curses_window 3 , .Xr curses_window 3 ,
.Xr tty 4
.Xr termcap 5 .Xr termcap 5
.Sh STANDARDS .Sh STANDARDS
The The
.Lb libcurses
library complies with the X/Open Curses specification, part of the
Single Unix Specification.
.Nx .Nx
Curses library complies with the X/Open Curses specification, part of the
Single Unix Specification.
.Sh HISTORY .Sh HISTORY
The Curses package appeared in The Curses package appeared in
.Bx 4.0 . .Bx 4.0 .