These functions create and display pads on the current screen.
The
newpad() function creates a new pad of size
lines,
cols.
subpad() is similar to
newpad() excepting that the size of the subpad is bounded by the parent pad
pad. The subpad shares internal data structures with the parent pad and will be refreshed when the parent pad is refreshed. The starting column and row
begin_y,
begin_x are relative to the parent pad origin.
The
pnoutrefresh() function performs the internal processing required by curses to determine what changes need to be made to synchronise the internal screen buffer and the terminal but does not modify the terminal display. A rectangular area of the pad starting at column and row
pbeg_y,
pbeg_x is copied to the corresponding rectangular area of the screen buffer starting at column and row
sbeg_y,
sbeg_x and extending to
smax_y,
smax_x.
The
prefresh() function causes curses to propagate changes made to the pad specified by
pad to the terminal display. A rectangular area of the pad starting at column and row
pbeg_y,
pbeg_x is copied to the corresponding rectangular area of the terminal starting at column and row
sbeg_y,
sbeg_x and extending to
smax_y,
smax_x.
The
pnoutrefresh() and
doupdate() functions can be used together to speed up terminal redraws by deferring the actual terminal updates until after a batch of updates to multiple pads has been done.