1 .\" $NetBSD: curses_pad.3,v 1.4 2008/04/30 13:10:51 martin Exp $
2 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
3 .\" All rights reserved.
5 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
37 .Nd curses pad routines
43 .Fn newpad "int lines" "int cols"
45 .Fn subpad "WINDOW *pad" "int lines" "int cols" "int begin_y" "int begin_x"
47 .Fn prefresh "WINDOW *pad" "int pbeg_y" "int pbeg_x" "int sbeg_y" "int sbeg_x" "int smax_y" "int smax_x"
49 .Fn pnoutrefresh "WINDOW *pad" "int pbeg_y" "int pbeg_x" "int sbeg_y" "int sbeg_x" "int smax_y" "int smax_x"
51 These functions create and display pads on the current screen.
55 function creates a new pad of size
62 excepting that the size of the subpad is bounded by the parent
65 The subpad shares internal data structures with the parent pad
66 and will be refreshed when the parent pad is refreshed.
67 The starting column and row
70 are relative to the parent pad origin.
74 function performs the internal processing required by curses to determine
75 what changes need to be made to synchronise the internal screen buffer
76 and the terminal but does not modify the terminal display.
77 A rectangular area of the pad starting at column and row
80 is copied to the corresponding rectangular area of the screen buffer starting
90 function causes curses to propagate changes made to the pad specified by
92 to the terminal display.
93 A rectangular area of the pad starting at column and row
96 is copied to the corresponding rectangular area of the terminal starting
108 functions can be used together to speed up terminal redraws by
109 deferring the actual terminal updates until after a batch of updates
110 to multiple pads has been done.
112 Functions returning pointers will return
114 if an error is detected.
115 The functions that return an int will return one of the following
118 .Bl -tag -width ERR -compact
120 The function completed successfully.
122 An error occurred in the function.
125 .Xr curses_refresh 3 ,
130 function is similar to the
132 function, and not the
138 Curses library complies with the X/Open Curses specification, part of the
139 Single Unix Specification.
141 The Curses package appeared in