4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>wresize</B> - resize a curses window
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><curses.h></B>
15 <B>int</B> <B>wresize(WINDOW</B> <B>*win,</B> <B>int</B> <B>lines,</B> <B>int</B> <B>columns);</B>
19 <H2>DESCRIPTION</H2><PRE>
20 The <B>wresize</B> function reallocates storage for an <B>ncurses</B>
21 window to adjust its dimensions to the specified values.
22 If either dimension is larger than the current values, the
23 window's data is filled with blanks that have the current
24 background rendition (as set by <B>wbkgndset</B>) merged into
29 <H2>RETURN VALUE</H2><PRE>
30 The function returns the integer <B>ERR</B> upon failure and <B>OK</B>
31 on success. It will fail if either of the dimensions less
32 than or equal to zero, or if an error occurs while
33 (re)allocating memory for the window.
38 The only restriction placed on the dimensions is that they
39 be greater than zero. The dimensions are not compared to
40 <B>curses</B> screen dimensions to simplify the logic of
41 <B>resizeterm</B>. The caller must ensure that the window's
42 dimensions fit within the actual screen dimensions.
46 <H2>SEE ALSO</H2><PRE>
47 <B><A HREF="resizeterm.3x.html">resizeterm(3x)</A></B>.
52 Thomas Dickey (from an equivalent function written in 1988
76 Man(1) output converted with
77 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>