X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fresizeterm.3x.html;fp=doc%2Fhtml%2Fman%2Fresizeterm.3x.html;h=31965414b2a9ac550a42e391d5c329701980e125;hp=e1a8c723a5f92c10feae336435323fa58500f523;hb=6208c89f98f1cf9fe0980bd8e791846ce007a13d;hpb=e3d8d5a5a9425b40e09df86a597c3e971dced9d1 diff --git a/doc/html/man/resizeterm.3x.html b/doc/html/man/resizeterm.3x.html index e1a8c723..31965414 100644 --- a/doc/html/man/resizeterm.3x.html +++ b/doc/html/man/resizeterm.3x.html @@ -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- @@ -143,8 +135,7 @@ 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 @@ -157,13 +148,11 @@ 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).