unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-2.0)
Page:
Section:
Apropos / Subsearch:
optional field

CURSES_TOUCH(3)          BSD Library Functions Manual          CURSES_TOUCH(3)

NAME
     curses_touch, touchline, touchoverlap, touchwin, untouchwin, wtouchln,
     is_linetouched, is_wintouched, redrawwin, wredrawln -- curses window mod-
     ification routines

LIBRARY
     Curses Library (libcurses, -lcurses)

SYNOPSIS
     #include <&lt;curses.h>&gt;

     int
     touchline(WINDOW *win, int row, int start, int end);

     int
     touchoverlap(WINDOW *win1, WINDOW *win2);

     int
     touchwin(WINDOW *win);

     int
     untouchwin(WINDOW *win);

     int
     wtouchln(WINDOW *win, int line, int n, boolf changed);

     bool
     is_linetouched(WINDOW *win, int line);

     bool
     is_wintouched(WINDOW *win);

     int
     redrawwin(WINDOW *win);

     int
     wredrawln(WINDOW *win, int line, int n);

DESCRIPTION
     These functions mark lines and windows as modified and check the modifi-
     cation status of lines and windows.

     The touchline() function marks the characters from start to end on row
     row in window win as having been modified.  These characters will be
     synced to the terminal on the next call to wrefresh().

     The touchoverlap() function marks the portion of win2 that overlaps win1
     as being modified.

     The touchwin() function marks the entire window win as having been modi-
     fied.  Conversely, the untouchwin() function marks the window win as
     being unmodified, so that any changes made to that window will not be
     synced to the terminal during a wrefresh().

     The wtouchln() function performs one of two operations on n lines start-
     ing at line in the given window.  If changed is 1 then the given line
     range is marked as being modified, if changed is 0 then the given line
     range is set to being unmodified.

     The is_linetouched() function returns TRUE if line in window win has been
     modified since the last refresh was done, otherwise FALSE is returned.

     is_wintouched() returns TRUE if the window win has been modified since
     the last refresh, otherwise FALSE is returned.

     The redrawwin() function marks the entire window win as having been cor-
     rupted.  Is is equivalent to the touchwin() function.

     The wredrawln() function marks n lines starting at line in the given win-
     dow as corrupted.  It is equivalent to wtouchln(win, line, n, 1).

RETURN VALUES
     Functions returning pointers will return NULL if an error is detected.
     The functions that return an int will return one of the following values:

     OK   The function completed successfully.
     ERR  An error occurred in the function.

SEE ALSO
     curses_refresh(3)

STANDARDS
     The NetBSD Curses library complies with the X/Open Curses specification,
     part of the Single Unix Specification.

HISTORY
     The Curses package appeared in 4.0BSD.

BSD                           September 23, 2003                           BSD