1 .\" $NetBSD: curses.3,v 1.61 2010/12/09 13:26:27 njoly 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 getcap Ta Xr curses_termcap 3
122 .It getch Ta Xr curses_input 3
123 .It getcurx Ta Xr curses_cursor 3
124 .It getcury Ta Xr curses_cursor 3
125 .It getmaxx Ta Xr curses_cursor 3
126 .It getmaxy Ta Xr curses_cursor 3
127 .It getnstr Ta Xr curses_input 3
128 .It getparx Ta Xr curses_cursor 3
129 .It getpary Ta Xr curses_cursor 3
130 .It getparyx Ta Xr curses_cursor 3
131 .It getstr Ta Xr curses_input 3
132 .It gettmode Ta Xr curses_tty 3
133 .It getwin Ta Xr curses_fileio 3
134 .It getyx Ta Xr curses_cursor 3
135 .It has_colors Ta Xr curses_color 3
136 .It has_ic Ta Xr curses_tty 3
137 .It has_il Ta Xr curses_tty 3
138 .It hline Ta Xr curses_line 3
139 .It idcok Ta Xr curses_tty 3
140 .It idlok Ta Xr curses_tty 3
141 .It inch Ta Xr curses_inch 3
142 .It inchnstr Ta Xr curses_inch 3
143 .It inchstr Ta Xr curses_inch 3
144 .It init_color Ta Xr curses_color 3
145 .It init_pair Ta Xr curses_color 3
146 .It initscr Ta Xr curses_screen 3
147 .It innstr Ta Xr curses_inch 3
148 .It insch Ta Xr curses_insertch 3
149 .It insdelln Ta Xr curses_insdelln 3
150 .It insertln Ta Xr curses_insertln 3
151 .It instr Ta Xr curses_inch 3
152 .It intrflush Ta Xr curses_tty 3
153 .It is_linetouched Ta Xr curses_touch 3
154 .It is_wintouched Ta Xr curses_touch 3
155 .It isendwin Ta Xr curses_screen 3
156 .It keyname Ta Xr curses_keyname 3
157 .It keyok Ta Xr curses_input 3
158 .It keypad Ta Xr curses_input 3
159 .It killchar Ta Xr curses_tty 3
160 .It leaveok Ta Xr curses_tty 3
161 .It longname Ta Xr curses_termcap 3
162 .It meta Ta Xr curses_tty 3
163 .It move Ta Xr curses_cursor 3
164 .It mvaddch Ta Xr curses_addch 3
165 .It mvaddchnstr Ta Xr curses_addchstr 3
166 .It mvaddchstr Ta Xr curses_addchstr 3
167 .It mvaddnstr Ta Xr curses_addstr 3
168 .It mvaddstr Ta Xr curses_addstr 3
169 .It mvchgat Ta Xr curses_chgat 3
170 .It mvcur Ta Xr curses_cursor 3
171 .It mvderwin Ta Xr curses_window 3
172 .It mvgetnstr Ta Xr curses_input 3
173 .It mvgetstr Ta Xr curses_input 3
174 .It mvhline Ta Xr curses_line 3
175 .It mvinchstr Ta Xr curses_inch 3
176 .It mvinchnstr Ta Xr curses_inch 3
177 .It mvprintw Ta Xr curses_print 3
178 .It mvscanw Ta Xr curses_scanw 3
179 .It mvvline Ta Xr curses_line 3
180 .It mvwaddch Ta Xr curses_addch 3
181 .It mvwaddchnstr Ta Xr curses_addchstr 3
182 .It mvwaddchstr Ta Xr curses_addchstr 3
183 .It mvwaddnstr Ta Xr curses_addstr 3
184 .It mvwaddstr Ta Xr curses_addstr 3
185 .It mvwchgat Ta Xr curses_chgat 3
186 .It mvwgetnstr Ta Xr curses_input 3
187 .It mvwgetstr Ta Xr curses_input 3
188 .It mvwhline Ta Xr curses_line 3
189 .It mvwinchstr Ta Xr curses_inch 3
190 .It mvwinchnstr Ta Xr curses_inch 3
191 .It mvwprintw Ta Xr curses_print 3
192 .It mvwscanw Ta Xr curses_scanw 3
193 .It mvwvline Ta Xr curses_line 3
194 .It napms Ta Xr curses_tty 3
195 .It newpad Ta Xr curses_pad 3
196 .It newterm Ta Xr curses_screen 3
197 .It newwin Ta Xr curses_window 3
198 .It \&nl Ta Xr curses_tty 3
199 .It nocbreak Ta Xr curses_tty 3
200 .It nodelay Ta Xr curses_input 3
201 .It noecho Ta Xr curses_tty 3
202 .It nonl Ta Xr curses_tty 3
203 .It noqiflush Ta Xr curses_tty 3
204 .It noraw Ta Xr curses_tty 3
205 .It notimeout Ta Xr curses_input 3
206 .It overlay Ta Xr curses_window 3
207 .It overwrite Ta Xr curses_window 3
208 .It pair_content Ta Xr curses_color 3
209 .It pnoutrefresh Ta Xr curses_pad 3
210 .It prefresh Ta Xr curses_pad 3
211 .It printw Ta Xr curses_print 3
212 .It putwin Ta Xr curses_fileio 3
213 .It qiflush Ta Xr curses_tty 3
214 .It raw Ta Xr curses_tty 3
215 .It redrawwin Ta Xr curses_touch 3
216 .It refresh Ta Xr curses_refresh 3
217 .It reset_prog_mode Ta Xr curses_tty 3
218 .It reset_shell_mode Ta Xr curses_tty 3
219 .It resetty Ta Xr curses_tty 3
220 .It resizeterm Ta Xr curses_screen 3
221 .It savetty Ta Xr curses_tty 3
222 .It scanw Ta Xr curses_scanw 3
223 .It scrl Ta Xr curses_scroll 3
224 .It scroll Ta Xr curses_scroll 3
225 .It scrollok Ta Xr curses_scroll 3
226 .It set_term Ta Xr curses_screen 3
227 .It setscrreg Ta Xr curses_scroll 3
228 .It setterm Ta Xr curses_screen 3
229 .It standend Ta Xr curses_standout 3
230 .It standout Ta Xr curses_standout 3
231 .It start_color Ta Xr curses_color 3
232 .It subpad Ta Xr curses_pad 3
233 .It subwin Ta Xr curses_window 3
234 .It termattrs Ta Xr curses_attributes 3
235 .It timeout Ta Xr curses_input 3
236 .It touchline Ta Xr curses_touch 3
237 .It touchoverlap Ta Xr curses_touch 3
238 .It touchwin Ta Xr curses_touch 3
239 .It unctrl Ta Xr curses_print 3
240 .It underend Ta Xr curses_underscore 3
241 .It underscore Ta Xr curses_underscore 3
242 .It ungetch Ta Xr curses_input 3
243 .It untouchwin Ta Xr curses_touch 3
244 .It use_default_colors Ta Xr curses_default_colors 3
245 .It vline Ta Xr curses_line 3
246 .It waddch Ta Xr curses_addch 3
247 .It waddchnstr Ta Xr curses_addchstr 3
248 .It waddchstr Ta Xr curses_addchstr 3
249 .It waddnstr Ta Xr curses_addstr 3
250 .It waddstr Ta Xr curses_addstr 3
251 .It wattr_get Ta Xr curses_attributes 3
252 .It wattr_off Ta Xr curses_attributes 3
253 .It wattr_on Ta Xr curses_attributes 3
254 .It wattr_set Ta Xr curses_attributes 3
255 .It wattroff Ta Xr curses_attributes 3
256 .It wattron Ta Xr curses_attributes 3
257 .It wattrset Ta Xr curses_attributes 3
258 .It wbkgd Ta Xr curses_background 3
259 .It wbkgdset Ta Xr curses_background 3
260 .It wborder Ta Xr curses_border 3
261 .It wchgat Ta Xr curses_chgat 3
262 .It wclear Ta Xr curses_clear 3
263 .It wclrtobot Ta Xr curses_clear 3
264 .It wclrtoeol Ta Xr curses_clear 3
265 .It wcolor_set Ta Xr curses_attributes 3
266 .It wdelch Ta Xr curses_delch 3
267 .It wdeleteln Ta Xr curses_deleteln 3
268 .It werase Ta Xr curses_clear 3
269 .It wgetch Ta Xr curses_input 3
270 .It wgetnstr Ta Xr curses_input 3
271 .It wgetstr Ta Xr curses_input 3
272 .It whline Ta Xr curses_line 3
273 .It winch Ta Xr curses_inch 3
274 .It winchnstr Ta Xr curses_inch 3
275 .It winchstr Ta Xr curses_inch 3
276 .It winnstr Ta Xr curses_inch 3
277 .It winsch Ta Xr curses_insertch 3
278 .It winsdelln Ta Xr curses_insdelln 3
279 .It winsertln Ta Xr curses_insertln 3
280 .It winstr Ta Xr curses_inch 3
281 .It wmove Ta Xr curses_cursor 3
282 .It wnoutrefresh Ta Xr curses_refresh 3
283 .It wprintw Ta Xr curses_print 3
284 .It wredrawln Ta Xr curses_touch 3
285 .It wrefresh Ta Xr curses_refresh 3
286 .It wresize Ta Xr curses_window 3
287 .It wscanw Ta Xr curses_scanw 3
288 .It wscrl Ta Xr curses_scroll 3
289 .It wsetscrreg Ta Xr curses_scroll 3
290 .It wstandend Ta Xr curses_standout 3
291 .It wstandout Ta Xr curses_standout 3
292 .It wtimeout Ta Xr curses_input 3
293 .It wtouchln Ta Xr curses_touch 3
294 .It wunderend Ta Xr curses_underscore 3
295 .It wunderscore Ta Xr curses_underscore 3
296 .It wvline Ta Xr curses_line 3
299 .Bl -tag -width CURSES_TRACE_MASK
301 The number of columns in the terminal if set.
302 This is usually automatically configured by querying the kernel.
303 .It CURSES_TRACE_MASK
304 An integer mask that enables specific debugging traces.
305 Enabled only in the debug build of curses.
306 .It CURSES_TRACE_FILE
307 A file where to output debugging information.
308 Enabled only in the debug build of curses.
310 The maximum delay in milliseconds between characters in multi-character
311 keystrokes (such are arrow keys) where the adjacent characters are considered
312 part of the same multi-character sequence.
313 The default is 300 milliseconds.
315 The number of lines in the terminal if set.
316 is usually automatically configured by querying the kernel.
318 The terminal type of the current terminal.
326 .%T Screen Updating and Cursor Movement Optimization: A Library Package
332 Curses library complies with the X/Open Curses specification, part of the
333 Single Unix Specification.
335 The Curses package appeared in