RESIZE(1) RESIZE(1)
NAME
resize - reset shell parameters to reflect the current size of a
window
SYNOPSIS
resize [-c | -u] [-h | -x | -s [row col]]
DESCRIPTION
Resize prints on its standard output the commands for setting $TERM,
$LINES, and $COLUMNS for a shell to reflect the current size of its
window. The $SHELL environment variable is used to determine the
shell for which to form the commands. The $TERM environment variable
is used to determine the escape sequences to be used to determine the
window size. Both of these can be overridden by command line options.
Resize is never executed directly, but should be run via eval(1)
similar to tset(1) to cause the shell to execute the commands. For
example, the following functions will reset the environment of the
current shell for sh(1) and ksh(1):
xs() { eval `resize`; }
xrs() { eval `resize -s $@`; }
An equivalent for csh(1) is:
alias xs 'set noglob; eval `resize`'
alias xrs 'set noglob; eval `resize -s \!\*`'
OPTIONS
The resize program accepts the following options listed below:
-c This option indicates that resize should format its commands
for csh(1).
-u This option indicates that resize should format its commands
for sh(1) or ksh(1).
-h This option indicates that resize should use Hewlett Packard
terminal escape sequences to obtain the terminal's new window
size.
-x This option indicates that resize should use VT102 escape
sequences to obtain the terminal's new window size.
-s [row col]
This option indicates that resize should use Sun escape
sequences to obtain the terminal's new window size. In this
mode of operation, a new row and column size may be specified
on the command line.
Hewlett-Packard Company - 1 - X11 Release 4 November 1991
RESIZE(1) RESIZE(1)
FILES
$HOME/.profile sh(1) and ksh(1) user's functions for resize.
$HOME/.cshrc csh(1) user's alias for resize.
NOTES
``-s'' must be the last option on the command line when specified.
There should be some global notion of display size; termcap and
terminfo need to be rethought in the context of window systems.
ORIGINS
MIT Distribution
SEE ALSO
sh(1), ksh(1), csh(1), eval(1), tset(1), xterm(1)
Hewlett-Packard Company - 2 - X11 Release 4 November 1991