*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> wresize (3)              
Title
Content
Arch
Section
 

wresize(3)

Contents


NAME    [Toc]    [Back]

       wresize - resize a curses window

SYNOPSIS    [Toc]    [Back]

       #include <curses.h>

       int wresize(WINDOW *win, int lines, int columns);

DESCRIPTION    [Toc]    [Back]

       The wresize function reallocates storage for a curses window
 to adjust its dimensions to the specified values.   If
       either  dimension  is  larger than the current values, the
       window's data is filled with blanks that have the  current
       background  rendition  (as  set  by wbkgndset) merged into
       them.

RETURN VALUE    [Toc]    [Back]

       The function returns the integer ERR upon failure  and  OK
       on success.  It will fail if either of the dimensions less
       than or equal  to  zero,  or  if  an  error  occurs  while
       (re)allocating memory for the window.

NOTES    [Toc]    [Back]

       The only restriction placed on the dimensions is that they
       be greater than zero.  The dimensions are not compared  to
       curses   screen   dimensions  to  simplify  the  logic  of
       resizeterm.  The caller  must  ensure  that  the  window's
       dimensions fit within the actual screen dimensions.

SEE ALSO    [Toc]    [Back]

      
      
       resizeterm(3).

AUTHOR    [Toc]    [Back]

       Thomas Dickey (from an equivalent function written in 1988
       for BSD curses).
[ Back ]
 Similar pages
Name OS Title
fsadm_vxfs HP-UX resize or reorganize a VxFS file system
glxchannelrectsgix IRIX specify area of frame buffer to resize to video resolution
scroll OpenBSD scroll a curses window
scrl Tru64 Scroll a Curses window
curs_scroll FreeBSD scroll a curses window
scrl FreeBSD scroll a curses window
scrl OpenBSD scroll a curses window
wscrl OpenBSD scroll a curses window
scroll Tru64 Scroll a Curses window
curs_scroll Tru64 Scroll a Curses window
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service