Next: , Previous: , Up: The basic curses library   [Contents][Index]

5.2.40 Terminal and window resizing

Procedure: resize win lines columns

The function resize reallocates storage for an ncurses 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 bkgdset!) merged into them.

It returns #t on success or #f on failure. It fails for zero-sized dimensions or memory allocation problems.

Procedure: resizeterm lines columns

The function resizeterm resizes the standard and current windows to the specified dimensions lines and columns. If the windows are increased in size, the extended areas are blank-filled.

It returns #t on success or #f on failure. It could fail for memory allocation failures or for dimensions that are too small.