1def_prog_mode(3XCURSES) X/Open Curses Library Functionsdef_prog_mode(3XCURSES)
2
3
4
6 def_prog_mode, def_shell_mode, reset_prog_mode, reset_shell_mode -
7 save/restore terminal modes
8
10 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
11 -R /usr/xpg4/lib -lcurses [ library... ]
12
13 c89 [ flag... ] file... -lcurses [ library... ]
14
15 #include <curses.h>
16
17 int def_prog_mode(void);
18
19
20 int def_shell_mode(void);
21
22
23 int reset_prog_mode(void);
24
25
26 int reset_shell_mode(void);
27
28
30 The def_prog_mode() and def_shell_mode() functions save the current
31 terminal modes as "program" (within X/Open Curses) or "shell" (outside
32 X/Open Curses). The modes are saved automatically by
33 initscr(3XCURSES), newterm(3XCURSES), and setupterm(3XCURSES).
34
35
36 The reset_prog_mode() and reset_shell_mode() functions reset the cur‐
37 rent terminal modes to "program" (within X/Open Curses) or "shell"
38 (outside X/Open Curses). The endwin(3XCURSES) function automatically
39 calls the reset_shell_mode() function and the doupdate(3XCURSES) func‐
40 tion calls the reset_prog_mode() function after calling endwin().
41
43 On success, these functions return OK. Otherwise, they return ERR.
44
46 None.
47
49 See attributes(5) for descriptions of the following attributes:
50
51
52
53
54 ┌─────────────────────────────┬─────────────────────────────┐
55 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │Interface Stability │Standard │
58 ├─────────────────────────────┼─────────────────────────────┤
59 │MT-Level │Unsafe │
60 └─────────────────────────────┴─────────────────────────────┘
61
63 endwin(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES),
64 newterm(3XCURSES), setupterm(3XCURSES), attributes(5), standards(5)
65
66
67
68SunOS 5.11 5 Jun 2002 def_prog_mode(3XCURSES)