X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fresizeterm.3x.html;h=ca51d4a3e9f92ad0ff3591b3e89d337df052f49b;hp=ffc68b7d1892869873685d8e0fce7d354b5905d0;hb=302a066a01e4de40f08b397e87ca0e97f20870a7;hpb=b9a2bd87a73d976d1c916815e2d370bf1090d1b2 diff --git a/doc/html/man/resizeterm.3x.html b/doc/html/man/resizeterm.3x.html index ffc68b7d..ca51d4a3 100644 --- a/doc/html/man/resizeterm.3x.html +++ b/doc/html/man/resizeterm.3x.html @@ -1,6 +1,6 @@ @@ -46,14 +46,12 @@ - -
+
is_term_resized, resize_term, resizeterm - change the curses terminal size --
+
#include <curses.h> bool is_term_resized(int lines, int columns); @@ -61,16 +59,14 @@ int resizeterm(int lines, int columns); --
+
This is an extension to the curses library. It provides callers with a hook into the ncurses data to resize win- dows, primarily for use by programs running in an X Window terminal (e.g., xterm). --
+
The function resizeterm resizes the standard and current windows to the specified dimensions, and adjusts other bookkeeping data used by the ncurses library that record @@ -78,8 +74,7 @@ ables. --
+
Most of the work is done by the inner function resize_term. The outer function resizeterm adds bookkeep- ing for the SIGWINCH handler. When resizing the windows, @@ -91,24 +86,21 @@ tional interaction with the application. --
+
A support function is_term_resized is provided so that applications can check if the resize_term function would modify the window structures. It returns TRUE if the win- dows would be modified, and FALSE otherwise. --
+
Except as noted, these functions return the integer ERR upon failure and OK on success. They will fail if either of the dimensions are less than or equal to zero, or if an error occurs while (re)allocating memory for the windows. --
+
While these functions are intended to be used to support a signal handler (i.e., for SIGWINCH), care should be taken to avoid invoking them in a context where malloc or real- @@ -120,7 +112,7 @@ o on receipt of a SIGWINCH, the handler sets a flag - o which is tested in wgetch and doupdate, + o which is tested in wgetch(3x) and doupdate, o in turn, calling the resizeterm function, @@ -143,13 +135,24 @@ WINCH is received, no screen size change may be recorded. --
+
+ It is possible to resize the screen with SVr4 curses, by + + o exiting curses with endwin(3x) and + + o resuming using refresh(3x). + + Doing that clears the screen and is visually distracting. + + This extension of ncurses was introduced in mid-1995. It + was adopted in NetBSD curses (2001) and PDCurses (2003). + + +
curs_getch(3x), curs_variables(3x), wresize(3x). --
+
Thomas Dickey (from an equivalent function written in 1988 for BSD curses). @@ -170,6 +173,7 @@