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/cyr_dbtool.8.html
cyr_dbtool(8) - manage Cyrus databases - Linux manual page
cyr_dbtool is used to manage a cyrusdb file. The usable actions are: show [<prefix>] get <key> set <key> <value> delete <key> consistency You may omit key or ke
manpages/gluNewNurbsRenderer.3gl.html
gluNewNurbsRenderer(3gl) - create a NURBS object (Man Page)
gluNewNurbsRenderer creates and returns a pointer to a new NURBS object. This object must be referred to when calling NURBS rendering and control functions. A r
manpages/XkbSetAutoRepeatRate.3.html
XkbSetAutoRepeatRate(3) - Sets the attributes of the RepeatK
XkbSetAutoRepeatRate.3 - The core protocol allows only control over whether or not the entire keyboard or individual keys should auto-repeat when held down. Rep
manpages/Tie::Hash::NamedCapture.3pm.html
Tie::Hash::NamedCapture(3pm) - Named regexp capture buffers
This module is used to implement the special hashes %+ and %-, but it can be used to tie other variables as you choose. When the all parameter is provided, then
manpages/Tk_GetImage.3.html
Tk_GetImage(3) - use an image in a widget - Linux man page
These procedures are invoked by widgets that wish to display images. Tk_GetImage is invoked by a widget when it first decides to display an image. name gives th
manpages/unzipsfx.1.html
unzipsfx(1) - self-extracting stub for prepending to ZIP arc
unzipsfx is a modified version of unzip(1L) designed to be prepended to existing ZIP archives in order to form self-extracting archives. Instead of taking its f
manpages/XStringToKeysym.3.html
XStringToKeysym(3) - convert keysyms - Linux manual page....
Standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name. KeySyms that are not part of the Xlib standard also may be
manpages/gnutls_pkcs12_export.3.html
gnutls_pkcs12_export(3) - API function - Linux manual page
This function will export the pkcs12 structure to DER or PEM format. If the buffer provided is not long enough to hold the output, then *output_data_size will b
manpages/mysqld.8.html
mysqld(8) - the MySQL server (Admin - Linux man page).......
mysqld, also known as MySQL Server, is the main program that does most of the work in a MySQL installation. MySQL Server manages access to the MySQL data direct
manpages/sane-lexmark.5.html
sane-lexmark(5) - SANE backend for Lexmark X1100/X1200 Serie
The sane-lexmark library implements a SANE (Scanner Access Now Easy) backend that provides access to the scanner part of Lexmark X1100/X1200 AIOs. This backend
manpages/endusershell.3.html
endusershell(3) - get permitted user shells - Linux man page
endusershell.3 - The getusershell() function returns the next line from the file /etc/shells, opening the file if necessary. The line should contain the pathnam
manpages/iftop.8.html
iftop(8) - display bandwidth usage on an interface by host
iftop listens to network traffic on a named interface, or on the first interface it can find which looks like an external interface if none is specified, and di
