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:

% rs

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:

This option indicates that Bourne shell commands should be generated even if the user's current shell is not /bin/sh.
This option indicates that C shell commands should be generated even if the user's current shell is not /bin/csh.
-s [rows columns]
This option indicates that Sun console escape sequences will be used instead of the VT100-style xterm escape codes. If rows and columns are given, resize will ask the xterm to resize itself. The window manager can choose to disallow the change, however.

The rows and columns arguments must appear last; although they are normally associated with the -s option, they are parsed separately.


User's alias for the command.


Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See X(5) for a complete copyright notice.