Sets the TERMCAP environment variable and terminal settings to the current window size.
resize [ -c | -u ] [ -s [ Rows Columns ] ]
The resize command utility prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of the xterm window from which the command is run. For this output to take effect, the resize command must either be evaluated as part of the command line (usually done with a shell alias or function) or else be redirected to a file that can then be read in. From the C shell (usually known as /bin/csh), 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 enter:
Users of versions of the Bourne shell (usually known as /bin/sh) that do not have command functions will need to send the output to a temporary file and then read it back in with the . (dot) command:
$ resize >/tmp/out $ . /tmp/out
|-c||Indicates that C shell commands should be generated even if the user's current shell is not /bin/csh.|
|-u||Indicates that Bourne shell commands should be generated even if the user's current shell is not a Bourne shell.|
|-s [Rows Columns]||Indicates that Sun console escape sequences will be used instead of the special xterm escape code. If the Rows and Columns parameters are given, the resize command will ask the xterm window to resize itself. However, the window manager may choose to disallow the change.|
Note: The -c or -u must appear to the left of -s if both are specified.
|/etc/termcap||Provides modification for the base termcap entry.|
The csh command, tset command, xterm command.