The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


use_env - specify source of screen size information


#include <curses.h>

void use_env(bool boolval);


The use_env() function specifies the technique by which the implementation determines the size of the screen. If boolval is FALSE, the implementation uses the values of lines and columns specified in the terminfo database. If boolval is TRUE, the implementation uses the and environment variables. The initial value is TRUE.

Any call to use_env() must precede calls to initscr(), newterm() or setupterm().


The function does not return a value.


No errors are defined.


del_curterm(), initscr(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]