1use_env(3XCURSES)       X/Open Curses Library Functions      use_env(3XCURSES)
2
3
4

NAME

6       use_env - specify source of screen size information
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       void use_env(bool boolval);
17
18

PARAMETERS

20       boolval    Is a Boolean expression.
21
22

DESCRIPTION

24       The use_env() function specifies the technique by which the implementa‐
25       tion determines the size of the screen. If boolval is FALSE, the imple‐
26       mentation  uses  the  values of lines and columns specified in the ter‐
27       minfo database. If boolval is TRUE, the implementation uses  the  LINES
28       and COLUMNS environmental variables. The initial value is TRUE.
29
30
31       Any   call  to  use_env()  must  precede  calls  to  initscr(3XCURSES),
32       newterm(3XCURSES), or setupterm(3XCURSES).
33

RETURN VALUES

35       The use_env() function does not return a value.
36

ERRORS

38       No errors are defined.
39

ATTRIBUTES

41       See attributes(5) for descriptions of the following attributes:
42
43
44
45
46       ┌─────────────────────────────┬─────────────────────────────┐
47       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
48       ├─────────────────────────────┼─────────────────────────────┤
49       │Interface Stability          │Standard                     │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │MT-Level                     │Unsafe                       │
52       └─────────────────────────────┴─────────────────────────────┘
53

SEE ALSO

55       del_curterm(3XCURSES),     initscr(3XCURSES),      libcurses(3XCURSES),
56       attributes(5), standards(5)
57
58
59
60SunOS 5.11                        5 Jun 2002                 use_env(3XCURSES)
Impressum