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 The wresize function reallocates storage for an ncurses window to
15 adjust its dimensions to the specified values. If either dimension is
16 larger than the current values, the window's data is filled with blanks
17 that have the current background rendition (as set by wbkgdset) merged
18 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 resizeterm(3X).
33
35 Thomas Dickey (from an equivalent function written in 1988 for BSD
36 curses).
37
38
39
40 wresize(3X)