resize - utility to set TERMCAP and terminal settings to current window size
resize [-u | -c] [-s [row col]]
The resize(1) utility prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of the xterm(1) window from which the command is run. For this output to take effect, resize must either be evaluated as part of the command line (usually done with a shell alias or function) or redirected to a file that can then be read in. From the C shell, the following alias could be defined in the user's .cshrc file:
% alias rs 'set noglob; eval `resize`'
After resizing the window, the user would type:
Users of versions of the Bourne shell (usually known as /bin/sh) that do not have command functions must send the output to a temporary file and then read it back in with the "." command:
$ resize > /tmp/out $ . /tmp/out
The following options can be used with resize:
The rows and columns arguments must appear last; although they are normally associated with the -s option, they are parsed separately.
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See X(5) for a complete copyright notice.