1 .\" $NetBSD: curses.3,v 1.63 2012/04/21 12:27:27 roy Exp $
3 .\" Copyright (c) 1985, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)curses.3 8.1 (Berkeley) 6/4/93
37 .Nd screen functions with
49 These routines give the user a method of updating screens with reasonable
51 They keep an image of the current screen,
52 and the user sets up an image of a new one.
55 tells the routines to make the current screen look like the new one.
56 In order to initialize the routines, the routine
58 must be called before any of the other routines that deal with windows and
62 should be called before exiting.
65 must be called before any of the other routines that deal with color are used.
67 .Bl -column "subwin(win,lines,cols,begin_y,begin_x)"
68 .It Sy "Function Name" Ta Sy "Manual Page Name"
69 .It addch Ta Xr curses_addch 3
70 .It addchnstr Ta Xr curses_addchstr 3
71 .It addchstr Ta Xr curses_addchstr 3
72 .It addnstr Ta Xr curses_addstr 3
73 .It addstr Ta Xr curses_addstr 3
74 .It assume_default_colors Ta Xr curses_default_colors 3
75 .It attr_get Ta Xr curses_attributes 3
76 .It attr_off Ta Xr curses_attributes 3
77 .It attr_on Ta Xr curses_attributes 3
78 .It attr_set Ta Xr curses_attributes 3
79 .It attroff Ta Xr curses_attributes 3
80 .It attron Ta Xr curses_attributes 3
81 .It attrset Ta Xr curses_attributes 3
82 .It beep Ta Xr curses_tty 3
83 .It bkgd Ta Xr curses_background 3
84 .It bkgdset Ta Xr curses_background 3
85 .It border Ta Xr curses_border 3
86 .It box Ta Xr curses_border 3
87 .It can_change_color Ta Xr curses_color 3
88 .It cbreak Ta Xr curses_tty 3
89 .It chgat Ta Xr curses_chgat 3
90 .It clear Ta Xr curses_clear 3
91 .It clearok Ta Xr curses_clear 3
92 .It clrtobot Ta Xr curses_clear 3
93 .It clrtoeol Ta Xr curses_clear 3
94 .It color_content Ta Xr curses_color 3
95 .It color_set Ta Xr curses_attributes 3
96 .It copywin Ta Xr curses_window 3
97 .It curs_set Ta Xr curses_tty 3
98 .It def_prog_mode Ta Xr curses_tty 3
99 .It def_shell_mode Ta Xr curses_tty 3
100 .It define_key Ta Xr curses_input 3
101 .It delay_output Ta Xr curses_tty 3
102 .It delch Ta Xr curses_delch 3
103 .It deleteln Ta Xr curses_deleteln 3
104 .It delscreen Ta Xr curses_screen 3
105 .It delwin Ta Xr curses_window 3
106 .It derwin Ta Xr curses_window 3
107 .It doupdate Ta Xr curses_refresh 3
108 .It dupwin Ta Xr curses_window 3
109 .It echo Ta Xr curses_tty 3
110 .It endwin Ta Xr curses_screen 3
111 .It erase Ta Xr curses_clear 3
112 .It erasechar Ta Xr curses_tty 3
113 .It flash Ta Xr curses_tty 3
114 .It flushinp Ta Xr curses_tty 3
115 .It flushok Ta Xr curses_refresh 3
116 .It fullname Ta Xr curses_termcap 3
117 .It getattrs Ta Xr curses_attributes 3
118 .It getbegx Ta Xr curses_cursor 3
119 .It getbegy Ta Xr curses_cursor 3
120 .It getbkgd Ta Xr curses_background 3
121 .It getch Ta Xr curses_input 3
122 .It getcurx Ta Xr curses_cursor 3
123 .It getcury Ta Xr curses_cursor 3
124 .It getmaxx Ta Xr curses_cursor 3
125 .It getmaxy Ta Xr curses_cursor 3
126 .It getnstr Ta Xr curses_input 3
127 .It getparx Ta Xr curses_cursor 3
128 .It getpary Ta Xr curses_cursor 3
129 .It getparyx Ta Xr curses_cursor 3
130 .It getstr Ta Xr curses_input 3
131 .It gettmode Ta Xr curses_tty 3
132 .It getwin Ta Xr curses_fileio 3
133 .It getyx Ta Xr curses_cursor 3
134 .It has_colors Ta Xr curses_color 3
135 .It has_ic Ta Xr curses_tty 3
136 .It has_il Ta Xr curses_tty 3
137 .It hline Ta Xr curses_line 3
138 .It idcok Ta Xr curses_tty 3
139 .It idlok Ta Xr curses_tty 3
140 .It inch Ta Xr curses_inch 3
141 .It inchnstr Ta Xr curses_inch 3
142 .It inchstr Ta Xr curses_inch 3
143 .It init_color Ta Xr curses_color 3
144 .It init_pair Ta Xr curses_color 3
145 .It initscr Ta Xr curses_screen 3
146 .It innstr Ta Xr curses_inch 3
147 .It insch Ta Xr curses_insertch 3
148 .It insdelln Ta Xr curses_insdelln 3
149 .It insertln Ta Xr curses_insertln 3
150 .It instr Ta Xr curses_inch 3
151 .It intrflush Ta Xr curses_tty 3
152 .It is_linetouched Ta Xr curses_touch 3
153 .It is_wintouched Ta Xr curses_touch 3
154 .It isendwin Ta Xr curses_screen 3
155 .It keyname Ta Xr curses_keyname 3
156 .It keyok Ta Xr curses_input 3
157 .It keypad Ta Xr curses_input 3
158 .It killchar Ta Xr curses_tty 3
159 .It leaveok Ta Xr curses_tty 3
160 .It meta Ta Xr curses_tty 3
161 .It move Ta Xr curses_cursor 3
162 .It mvaddch Ta Xr curses_addch 3
163 .It mvaddchnstr Ta Xr curses_addchstr 3
164 .It mvaddchstr Ta Xr curses_addchstr 3
165 .It mvaddnstr Ta Xr curses_addstr 3
166 .It mvaddstr Ta Xr curses_addstr 3
167 .It mvchgat Ta Xr curses_chgat 3
168 .It mvcur Ta Xr curses_cursor 3
169 .It mvderwin Ta Xr curses_window 3
170 .It mvgetnstr Ta Xr curses_input 3
171 .It mvgetstr Ta Xr curses_input 3
172 .It mvhline Ta Xr curses_line 3
173 .It mvinchstr Ta Xr curses_inch 3
174 .It mvinchnstr Ta Xr curses_inch 3
175 .It mvprintw Ta Xr curses_print 3
176 .It mvscanw Ta Xr curses_scanw 3
177 .It mvvline Ta Xr curses_line 3
178 .It mvwaddch Ta Xr curses_addch 3
179 .It mvwaddchnstr Ta Xr curses_addchstr 3
180 .It mvwaddchstr Ta Xr curses_addchstr 3
181 .It mvwaddnstr Ta Xr curses_addstr 3
182 .It mvwaddstr Ta Xr curses_addstr 3
183 .It mvwchgat Ta Xr curses_chgat 3
184 .It mvwgetnstr Ta Xr curses_input 3
185 .It mvwgetstr Ta Xr curses_input 3
186 .It mvwhline Ta Xr curses_line 3
187 .It mvwinchstr Ta Xr curses_inch 3
188 .It mvwinchnstr Ta Xr curses_inch 3
189 .It mvwprintw Ta Xr curses_print 3
190 .It mvwscanw Ta Xr curses_scanw 3
191 .It mvwvline Ta Xr curses_line 3
192 .It napms Ta Xr curses_tty 3
193 .It newpad Ta Xr curses_pad 3
194 .It newterm Ta Xr curses_screen 3
195 .It newwin Ta Xr curses_window 3
196 .It \&nl Ta Xr curses_tty 3
197 .It nocbreak Ta Xr curses_tty 3
198 .It nodelay Ta Xr curses_input 3
199 .It noecho Ta Xr curses_tty 3
200 .It nonl Ta Xr curses_tty 3
201 .It noqiflush Ta Xr curses_tty 3
202 .It noraw Ta Xr curses_tty 3
203 .It notimeout Ta Xr curses_input 3
204 .It overlay Ta Xr curses_window 3
205 .It overwrite Ta Xr curses_window 3
206 .It pair_content Ta Xr curses_color 3
207 .It pnoutrefresh Ta Xr curses_pad 3
208 .It prefresh Ta Xr curses_pad 3
209 .It printw Ta Xr curses_print 3
210 .It putwin Ta Xr curses_fileio 3
211 .It qiflush Ta Xr curses_tty 3
212 .It raw Ta Xr curses_tty 3
213 .It redrawwin Ta Xr curses_touch 3
214 .It refresh Ta Xr curses_refresh 3
215 .It reset_prog_mode Ta Xr curses_tty 3
216 .It reset_shell_mode Ta Xr curses_tty 3
217 .It resetty Ta Xr curses_tty 3
218 .It resizeterm Ta Xr curses_screen 3
219 .It savetty Ta Xr curses_tty 3
220 .It scanw Ta Xr curses_scanw 3
221 .It scrl Ta Xr curses_scroll 3
222 .It scroll Ta Xr curses_scroll 3
223 .It scrollok Ta Xr curses_scroll 3
224 .It set_term Ta Xr curses_screen 3
225 .It setscrreg Ta Xr curses_scroll 3
226 .It setterm Ta Xr curses_screen 3
227 .It standend Ta Xr curses_standout 3
228 .It standout Ta Xr curses_standout 3
229 .It start_color Ta Xr curses_color 3
230 .It subpad Ta Xr curses_pad 3
231 .It subwin Ta Xr curses_window 3
232 .It termattrs Ta Xr curses_attributes 3
233 .It timeout Ta Xr curses_input 3
234 .It touchline Ta Xr curses_touch 3
235 .It touchoverlap Ta Xr curses_touch 3
236 .It touchwin Ta Xr curses_touch 3
237 .It unctrl Ta Xr curses_print 3
238 .It underend Ta Xr curses_underscore 3
239 .It underscore Ta Xr curses_underscore 3
240 .It ungetch Ta Xr curses_input 3
241 .It untouchwin Ta Xr curses_touch 3
242 .It use_default_colors Ta Xr curses_default_colors 3
243 .It vline Ta Xr curses_line 3
244 .It waddch Ta Xr curses_addch 3
245 .It waddchnstr Ta Xr curses_addchstr 3
246 .It waddchstr Ta Xr curses_addchstr 3
247 .It waddnstr Ta Xr curses_addstr 3
248 .It waddstr Ta Xr curses_addstr 3
249 .It wattr_get Ta Xr curses_attributes 3
250 .It wattr_off Ta Xr curses_attributes 3
251 .It wattr_on Ta Xr curses_attributes 3
252 .It wattr_set Ta Xr curses_attributes 3
253 .It wattroff Ta Xr curses_attributes 3
254 .It wattron Ta Xr curses_attributes 3
255 .It wattrset Ta Xr curses_attributes 3
256 .It wbkgd Ta Xr curses_background 3
257 .It wbkgdset Ta Xr curses_background 3
258 .It wborder Ta Xr curses_border 3
259 .It wchgat Ta Xr curses_chgat 3
260 .It wclear Ta Xr curses_clear 3
261 .It wclrtobot Ta Xr curses_clear 3
262 .It wclrtoeol Ta Xr curses_clear 3
263 .It wcolor_set Ta Xr curses_attributes 3
264 .It wdelch Ta Xr curses_delch 3
265 .It wdeleteln Ta Xr curses_deleteln 3
266 .It werase Ta Xr curses_clear 3
267 .It wgetch Ta Xr curses_input 3
268 .It wgetnstr Ta Xr curses_input 3
269 .It wgetstr Ta Xr curses_input 3
270 .It whline Ta Xr curses_line 3
271 .It winch Ta Xr curses_inch 3
272 .It winchnstr Ta Xr curses_inch 3
273 .It winchstr Ta Xr curses_inch 3
274 .It winnstr Ta Xr curses_inch 3
275 .It winsch Ta Xr curses_insertch 3
276 .It winsdelln Ta Xr curses_insdelln 3
277 .It winsertln Ta Xr curses_insertln 3
278 .It winstr Ta Xr curses_inch 3
279 .It wmove Ta Xr curses_cursor 3
280 .It wnoutrefresh Ta Xr curses_refresh 3
281 .It wprintw Ta Xr curses_print 3
282 .It wredrawln Ta Xr curses_touch 3
283 .It wrefresh Ta Xr curses_refresh 3
284 .It wresize Ta Xr curses_window 3
285 .It wscanw Ta Xr curses_scanw 3
286 .It wscrl Ta Xr curses_scroll 3
287 .It wsetscrreg Ta Xr curses_scroll 3
288 .It wstandend Ta Xr curses_standout 3
289 .It wstandout Ta Xr curses_standout 3
290 .It wtimeout Ta Xr curses_input 3
291 .It wtouchln Ta Xr curses_touch 3
292 .It wunderend Ta Xr curses_underscore 3
293 .It wunderscore Ta Xr curses_underscore 3
294 .It wvline Ta Xr curses_line 3
297 .Bl -tag -width CURSES_TRACE_MASK
299 The number of columns in the terminal if set.
300 This is usually automatically configured by querying the kernel.
301 .It CURSES_TRACE_MASK
302 An integer mask that enables specific debugging traces.
303 Enabled only in the debug build of curses.
304 .It CURSES_TRACE_FILE
305 A file where to output debugging information.
306 Enabled only in the debug build of curses.
308 The maximum delay in milliseconds between characters in multi-character
309 keystrokes (such are arrow keys) where the adjacent characters are considered
310 part of the same multi-character sequence.
311 The default is 300 milliseconds.
313 The number of lines in the terminal if set.
314 is usually automatically configured by querying the kernel.
316 The terminal type of the current terminal.
324 .%T Screen Updating and Cursor Movement Optimization: A Library Package
330 Curses library complies with the X/Open Curses specification, part of the
331 Single Unix Specification.
333 The Curses package appeared in