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:
% rs
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
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.