touch
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
PORTABILITY
NOTES
SEE ALSO
NAME
touchwin, touchline, untouchwin, wtouchln, is_linetouched, is_wintouched − curses refresh control routines
SYNOPSIS
#include
<ncurses/curses.h>
int touchwin(WINDOW *win);
int touchline(WINDOW *win, int start, int count);
int untouchwin(WINDOW *win);
int wtouchln(WINDOW *win, int y, int n, int changed);
bool is_linetouched(WINDOW *win, int line);
bool is_wintouched(WINDOW *win);
DESCRIPTION
The touchwin and touchline routines throw away all optimization information about which parts of the window have been touched, by pretending that the entire window has been drawn on. This is sometimes necessary when using overlapping windows, since a change to one window affects the other window, but the records of which lines have been changed in the other window do not reflect the change. The routine touchline only pretends that count lines have been changed, beginning with line start.
The untouchwin routine marks all lines in the window as unchanged since the last call to wrefresh.
The wtouchln routine makes n lines in the window, starting at line y, look as if they have (changed=1) or have not (changed=0) been changed since the last call to wrefresh.
The is_linetouched and is_wintouched routines return TRUE if the specified line/window was modified since the last call to wrefresh; otherwise they return FALSE. In addition, is_linetouched returns ERR if line is not valid for the given window.
RETURN VALUE
All routines return the integer ERR upon failure and an integer value other than ERR upon successful completion, unless otherwise noted in the preceding routine descriptions.
X/Open does not define any error conditions. In this implementation
is_linetouched
returns an error if the window pointer is null, or if the line number is outside the window. Note that ERR is distinct from TRUE and FALSE, which are the normal return values of this function.
wtouchln
returns an error if the window pointer is null, or if the line number is outside the window.
PORTABILITY
The XSI Curses standard, Issue 4 describes these functions.
Some historic curses implementations had, as an undocumented feature, the ability to do the equivalent of clearok(..., 1) by saying touchwin(stdscr) or clear(stdscr). This will not work under ncurses.
NOTES
Note that all routines except wtouchln may be macros.
SEE ALSO
ncurses(3NCURSES), refresh(3NCURSES), curses_variables(3NCURSES).
More Linux Commands
manpages/rt_sigaction.2.html
rt_sigaction(2) - examine and change a signal action........
The sigaction() system call is used to change the action taken by a process on receipt of a specific signal. (See signal(7) for an overview of signals.) signum
manpages/FcConfigDestroy.3.html
FcConfigDestroy(3) - Destroy a configuration (Man Page).....
Decrements the config reference count. If all references are gone, destroys the configuration and any data associated with it. Note that calling this function w
manpages/sane-gphoto2.5.html
sane-gphoto2(5) - SANE backend for gphoto2 supported cameras
The sane-gphoto2 library implements a SANE (Scanner Access Now Easy) backend that provides access to the digital cameras supported by gphoto2. This backend has
manpages/nfsservctl.2.html
nfsservctl(2) - syscall interface to kernel nfs daemon......
Note: Since Linux 3.1, this system call no longer exists. /* * These are the commands understood by nfsctl(). */ #define NFSCTL_SVC 0 /* This is a server proces
manpages/gnutls_global_set_audit_log_function.3.html
gnutls_global_set_audit_log_function(3) - API function......
This is the function where you set the logging function gnutls is going to use. This is different from gnutls_global_set_log_function() because it will report t
manpages/sane-teco1.5.html
sane-teco1(5) - SANE backend for TECO / RELISYS scanners....
The sane-teco1 library implements a SANE (Scanner Access Now Easy) backend that provides access to some TECO SCSI flatbed scanners. This backend should be consi
manpages/XGetDeviceDontPropagateList.3.html
XGetDeviceDontPropagateList(3) - query or change the dont-pr
The XChangeDeviceDontPropagateList request modifies the list of events that should not be propagated to ancestors of the event window. This request allows exten
manpages/pamgradient.1.html
pamgradient(1) - create a four-corner gradient PAM or PNM im
This program is part of Netpbm(1) pamgradient creates an image of the specified dimensions width by height which contains a smooth, two-dimensional gradient bet
manpages/Net::Server::Daemonize.3pm.html
Net::Server::Daemonize(3pm) - Safe fork and daemonization ut
This module is intended to let you simply and safely daemonize your server on systems supporting the POSIX module. This means that your Perl script runs in the
manpages/sched_getattr.2.html
sched_getattr(2) set and get scheduling policy and attribute
sched_setattr() The sched_setattr() system call sets the scheduling policy and associated attributes for the thread whose ID is specified in pid. If pid equals
manpages/gluTessProperty.3gl.html
gluTessProperty(3gl) - set a tessellation object property...
gluTessProperty is used to control properties stored in a tessellation object. These properties affect the way that the polygons are interpreted and rendered. T
manpages/pam_sm_chauthtok.3.html
pam_sm_chauthtok(3) - PAM service function for authenticatio
The pam_sm_chauthtok function is the service modules implementation of the pam_chauthtok(3) interface. This function is used to (re-)set the authentication toke
