4 <STRONG>wresize</STRONG> - resize a curses window
9 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
11 <STRONG>int</STRONG> <STRONG>wresize(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>lines,</STRONG> <STRONG>int</STRONG> <STRONG>columns);</STRONG>
15 <H2>DESCRIPTION</H2><PRE>
16 The <STRONG>wresize</STRONG> function reallocates storage for an <STRONG>ncurses</STRONG>
17 window to adjust its dimensions to the specified values.
18 If either dimension is larger than the current values, the
19 window's data is filled with blanks that have the current
20 background rendition (as set by <STRONG>wbkgndset</STRONG>) merged into
25 <H2>RETURN VALUE</H2><PRE>
26 The function returns the integer <STRONG>ERR</STRONG> upon failure and <STRONG>OK</STRONG>
27 on success. It will fail if either of the dimensions less
28 than or equal to zero, or if an error occurs while
29 (re)allocating memory for the window.
34 The only restriction placed on the dimensions is that they
35 be greater than zero. The dimensions are not compared to
36 <STRONG>curses</STRONG> screen dimensions to simplify the logic of
37 <STRONG>resizeterm</STRONG>. The caller must ensure that the window's
38 dimensions fit within the actual screen dimensions.
42 <H2>SEE ALSO</H2><PRE>
43 <STRONG><A HREF="resizeterm.3x.html">resizeterm(3X)</A></STRONG>.
48 Thomas Dickey (from an equivalent function written in 1988