1wresize(3X) wresize(3X)
2
3
4
6 wresize - resize a curses window
7
9 #include <curses.h>
10
11 int wresize(WINDOW *win, int lines, int columns);
12
14 This is an extension to the curses library. It reallocates storage for
15 an ncurses window to adjust its dimensions to the specified values. If
16 either dimension is larger than the current values, the window's data
17 is filled with blanks that have the current background rendition (as
18 set by wbkgdset) merged into them.
19
21 The function returns the integer ERR upon failure and OK on success.
22 It will fail if either of the dimensions less than or equal to zero, or
23 if an error occurs while (re)allocating memory for the window.
24
26 The only restriction placed on the dimensions is that they be greater
27 than zero. The dimensions are not compared to curses screen dimensions
28 to simplify the logic of resizeterm. The caller must ensure that the
29 window's dimensions fit within the actual screen dimensions.
30
32 It is not possible to resize windows with SVr4 curses.
33
34 This extension of ncurses was introduced in mid-1995. It was adopted
35 in NetBSD curses (2001) and PDCurses (2003).
36
38 resizeterm(3X).
39
41 Thomas Dickey (from an equivalent function written in 1988 for BSD
42 curses).
43
44
45
46 wresize(3X)