From a1a7bef1e41e56964ef2d128206133c978e289a5 Mon Sep 17 00:00:00 2001 From: jdc Date: Tue, 8 Apr 2003 18:57:09 +0000 Subject: [PATCH] Document LINES and COLS environment variables. --- lib/libcurses/curses_screen.3 | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/lib/libcurses/curses_screen.3 b/lib/libcurses/curses_screen.3 index 706bc962dd40..dd0c76892d9e 100644 --- a/lib/libcurses/curses_screen.3 +++ b/lib/libcurses/curses_screen.3 @@ -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 .\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au) @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" -.Dd August 12, 2002 +.Dd April 8, 2003 .Dt CURSES_SCREEN 3 .Os .Sh NAME @@ -64,6 +64,10 @@ .Fn resizeterm "int lines" "int cols" .Ft int .Fn setterm "char *name" +.Ft extern int +.Dv LINES +.Ft extern int +.Dv COLS .Sh DESCRIPTION These functions initialize terminals and screens. .Pp @@ -113,6 +117,16 @@ The exception to this rule is the .Fn newterm call which may be called prior to .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 The .Fn isendwin @@ -153,13 +167,13 @@ An error occurred in the function. .El .Sh SEE ALSO .Xr curses_window 3 , +.Xr tty 4 .Xr termcap 5 .Sh STANDARDS The -.Lb libcurses -library complies with the X/Open Curses specification, part of the -Single Unix Specification. .Nx +Curses library complies with the X/Open Curses specification, part of the +Single Unix Specification. .Sh HISTORY The Curses package appeared in .Bx 4.0 .