1wresize(3X)                                                        wresize(3X)
2
3
4

NAME

6       wresize - resize a curses window
7

SYNOPSIS

9       #include <curses.h>
10
11       int wresize(WINDOW *win, int lines, int columns);
12

DESCRIPTION

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

RETURN VALUE

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

NOTES

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

SEE ALSO

32       resizeterm(3X).
33

AUTHOR

35       Thomas Dickey (from an equivalent function  written  in  1988  for  BSD
36       curses).
37
38
39
40                                                                   wresize(3X)
Impressum