NAME
newpad, subpad, prefresh, pnoutrefresh, pechochar, pecho_wchar - create and display curses pads
SYNOPSIS
#include <curses.h> WINDOW *newpad(int nlines, int ncols); WINDOW *subpad(WINDOW *orig, int nlines, int ncols, int begin_y, int begin_x); int prefresh(WINDOW *pad, int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol); int pnoutrefresh(WINDOW *pad, int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol); int pechochar(WINDOW *pad, chtype ch); int pecho_wchar(WINDOW *pad, const cchar_t *wch);
DESCRIPTION
newpad The newpad routine creates and returns a pointer to a new pad data structure with the given number of lines, nlines, and columns, ncols. A pad is like a window, except that it is not restricted by the screen size, and is not necessarily associated with a particular part of the screen. Pads can be used when a large window is needed, and only a part of the window will be on the screen at one time. Automatic refreshes of pads (e.g., from scrolling or echoing of input) do not occur. It is not legal to call wrefresh with a pad as an argument; the routines prefresh or pnoutrefresh should be called instead. Note that these routines require additional parameters to specify the part of the pad to be displayed and the location on the screen to be used for the display. subpad The subpad routine creates and returns a pointer to a subwindow within a pad with the given number of lines, nlines, and columns, ncols. Unlike subwin, which uses screen coordinates, the window is at position (begin_x, begin_y) on the pad. The window is made in the middle of the window orig, so that changes made to one window affect both windows. During the use of this routine, it will often be necessary to call touchwin or touchline on orig before calling prefresh. prefresh, pnoutrefresh The prefresh and pnoutrefresh routines are analogous to wrefresh and wnoutrefresh except that they relate to pads instead of windows. The additional parameters are needed to indicate what part of the pad and screen are involved. The pminrow and pmincol parameters specify the upper left-hand corner of the rectangle to be displayed in the pad. The sminrow, smincol, smaxrow, and smaxcol parameters specify the edges of the rectangle to be displayed on the screen. The lower right-hand corner of the rectangle to be displayed in the pad is calculated from the screen coordinates, since the rectangles must be the same size. Both rectangles must be entirely contained within their respective structures. Negative values of pminrow, pmincol, sminrow, or smincol are treated as if they were zero. pechochar The pechochar routine is functionally equivalent to a call to addch followed by a call to refresh, a call to waddch followed by a call to wrefresh, or a call to waddch followed by a call to prefresh. The knowledge that only a single character is being output is taken into consideration and, for non-control characters, a considerable performance gain might be seen by using these routines instead of their equivalents. In the case of pechochar, the last location of the pad on the screen is reused for the arguments to prefresh. pecho_wchar The pecho_wchar function is the analogous wide-character form of pechochar. It outputs one character to a pad and immediately refreshes the pad. It does this by a call to wadd_wch followed by a call to prefresh.
RETURN VALUE
Routines that return an integer return ERR upon failure and OK (SVr4 only specifies "an integer value other than ERR") upon successful completion. Routines that return pointers return NULL on error, and set errno to ENOMEM. X/Open does not define any error conditions. In this implementation prefresh and pnoutrefresh return an error if the window pointer is null, or if the window is not really a pad or if the area to refresh extends off- screen or if the minimum coordinates are greater than the maximum. pechochar returns an error if the window is not really a pad, and the associated call to wechochar returns an error. pecho_wchar returns an error if the window is not really a pad, and the associated call to wecho_wchar returns an error.
NOTES
Note that pechochar may be a macro.
PORTABILITY
The XSI Curses standard, Issue 4 describes these functions.
SEE ALSO
ncurses(3NCURSES), refresh(3NCURSES), touch(3NCURSES), addch(3NCURSES). pad(3NCURSES)
More Linux Commands
manpages/glPixelStorei.3gl.html
glPixelStorei(3gl) - set pixel storage modes (Man Page).....
glPixelStore sets pixel storage modes that affect the operation of subsequent glDrawPixels and glReadPixels as well as the unpacking of polygon stipple patterns
manpages/bib1-attr.7.html
bib1-attr(7) - Bib-1 Attribute Set - Linux manual page......
This reference entry lists the Bib-1 attribute set types and values. TYPES The Bib-1 attribute defines six attribute types: Use (1), Relation (2), Position (3),
manpages/Tcl_UniCharToUpper.3.html
Tcl_UniCharToUpper(3) - routines for manipulating the case o
The first three routines convert the case of individual Unicode characters: If ch represents a lower-case character, Tcl_UniCharToUpper returns the correspondin
manpages/elfedit.1.html
elfedit(1) - Update the ELF header of ELF files. (Man Page)
elfedit updates the ELF header of ELF files which have the matching ELF machine and file types. The options control how and which fields in the ELF header shoul
manpages/Mail::DKIM::Canonicalization::DkimCommon.3pm.html
Mail::DKIM::Canonicalization::DkimCommon(3pm) - common canon
This class implements functionality that is common to all the currently-defined DKIM canonicalization methods, but not necessarily common with future canonicali
manpages/XtParent.3.html
XtParent(3) - obtain widget's parent widget id (Man Page)...
XtParent returns the widgets parent widget ID. SEE ALSO X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface XtParent.3 (Library - Linux ma
manpages/pacat.1.html
pacat(1) - Play back or record raw or encoded audio streams
pacat is a simple tool for playing back or capturing raw or encoded audio files on a PulseAudio sound server. OPTIONS -h | --help Show help. --version Show vers
manpages/acl_to_text.3.html
acl_to_text(3) - convert an ACL to text - Linux manual page
The acl_to_text() function translates the ACL pointed to by the argument acl into a NULL terminated character string. If the pointer len_p is not NULL, then the
manpages/gnutls_x509_trust_list_add_cas.3.html
gnutls_x509_trust_list_add_cas(3) - API function (Man Page)
This function will add the given certificate authorities to the trusted list. The list of CAs must not be deinitialized during this structures lifetime. RETURNS
manpages/gnutls_cipher_set_iv.3.html
gnutls_cipher_set_iv(3) - API function - Linux manual page
This function will set the IV to be used for the next encryption block. SINCE 3.0.0 REPORTING BUGS Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http:/
manpages/intrflush_sp.3ncurses.html
intrflush_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/Tcl_GetErrno.3.html
Tcl_GetErrno(3) - manipulate errno to store and retrieve err
Tcl_SetErrno and Tcl_GetErrno provide portable access to the errno variable, which is used to record a POSIX error code after system calls and other operations
