1 .\" $NetBSD: doc.I,v 1.4 1998/01/09 04:12:06 perry Exp $
3 .\" Copyright (c) 1980, 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 .\" @(#)doc.I 8.1 (Berkeley) 6/4/93
43 If the character is a newline
45 the line will be cleared to the end,
46 and the current \*y will be changed to the
47 beginning off the next line
48 if newline mapping is on,
49 or to the next line at the same x co-ordinate
53 will move to the beginning of the line on the window.
56 will be expanded into spaces
57 in the normal tabstop positions of
58 every eight characters.
67 Add the string pointed to by
69 on the window at the current \*y.
71 In this case, it will put on as much as it can.
73 .Fd box win\*,vert\*,hor
78 Draws a box around the window using
80 as the character for drawing the vertical sides, and
82 for drawing the horizontal lines.
83 If scrolling is not allowed,
84 and the window encompasses the lower right-hand corner of the terminal,
85 the corners are left blank to avoid a scroll.
91 Resets the entire window to blanks.
95 this sets the clear flag,
96 which will cause a clear-screen sequence to be sent
100 This also moves the current \*y
103 .Fd clearok scr\*,boolf \*m
107 Sets the clear flag for the screen
112 this will force a clear-screen to be printed on the next
114 or stop it from doing so if
117 This only works on screens,
121 does not alter the contents of the screen.
128 call will cause a clear-screen,
129 even if the window passed to
137 Wipes the window clear from the current \*y to the bottom.
138 This does not force a clear-screen sequence on the next refresh
139 under any circumstances.
146 Wipes the window clear from the current \*y to the end of the line.
153 Delete the character at the current \*y.
154 Each character after it on the line shifts to the left,
155 and the last character becomes blank.
161 Delete the current line.
162 Every line below the current one will move up,
163 and the bottom line will become blank.
164 The current \*y will remain unchanged.
170 Erases the window to blanks without setting the clear flag.
173 except that it never causes a clear-screen sequence to be generated
178 .Fd flushok win\*,boolf \*m
188 allows you to control this.
200 .Fd idlok win\*,boolf
204 Reserved for future use.
205 This will eventually signal to
207 that it is all right to use the insert and delete line sequences
208 when updating the window.
219 Each character after it shifts to the right,
220 and the last character disappears.
227 Insert a line above the current one.
228 Every line below the current line
229 will be shifted down,
230 and the bottom line will disappear.
231 The current line will become blank,
232 and the current \*y will remain unchanged.
236 .Fd wmove win\*,y\*,x
240 Change the current \*y of the window to
244 .Fd overlay win1\*,win2
245 WINDOW *win1\*,*win2;
256 at their starting \*y.
257 This is done non-destructively,
260 leave the contents of the space on
264 .Fd overwrite win1\*,win2
265 WINDOW *win1\*,*win2;
276 at their starting \*y.
277 This is done destructively,
284 .Fd printw fmt\*,arg1\*,arg2\*,...
286 .Fd wprintw win\*,fmt\*,arg1\*,arg2\*,...
292 on the window starting at the current \*y.
295 to add the string on the window.
296 It is often advisable to use the field width options of
298 to avoid leaving things on the window from earlier calls.
305 Synchronize the terminal screen with the desired window.
306 If the window is not a screen,
307 only that part covered by it is updated.
309 In this case, it will update whatever it can
310 without causing the scroll.
315 is called with the window
317 the screen is cleared
318 and repainted as it is currently.
319 This is very useful for allowing the redrawing of the screen
320 when the user has garbage dumped on his terminal.
329 Start and stop putting characters onto
333 causes any characters added to the window
334 to be put in standout mode on the terminal
335 (if it has that capability).
346 if they are not defined)
347 are used (see Appendix A).