NAME
resize - set TERMCAP and terminal settings to current xterm window size
SYNOPSIS
resize
[ --uu | --cc ] [ --ss [ _r_o_w _c_o_l ] ]
DESCRIPTION
Resize
prints a shell command for setting the TERM and TERMCAP environment variables
to indicate the current size of _x_t_e_r_m window from which the command
is run. For this output to take effect, _r_e_s_i_z_e must either be evaluated
as part of the command line (usually done with a shell alias or function) or
else redirected to a file which can then be read in. From the C shell (usually
known as _/_b_i_n_/_c_s_h), the following alias could be defined in the
user's _._c_s_h_r_c:
% 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 _/_b_i_n_/_s_h) that
don't have command
functions will need to send the output to a temporary file and then read it back
in with the "." command:
$ resize > /tmp/out
$ . /tmp/out
OPTIONS
The following options may be used with _r_e_s_i_z_e:
-
-u
-
This option indicates that Bourne shell commands should be generated even if
the user's current shell isn't _/_b_i_n_/_s_h.
-
-c
-
This option indicates that C shell commands should be generated even if the
user's current shell isn't _/_b_i_n_/_c_s_h.
-
-s [_r_o_w_s _c_o_l_u_m_n_s]
-
This option indicates that Sun console escape sequences will be used
instead of the VT100-style _x_t_e_r_m escape codes.
If _r_o_w_s and
_c_o_l_u_m_n_s are given, _r_e_s_i_z_e will ask the _x_t_e_r_m to resize
itself. However, the window manager may choose to disallow the change.
Note that the Sun console escape sequences are recognized
by XFree86 _x_t_e_r_m and
by _d_t_t_e_r_m.
The _r_e_s_i_z_e program may be installed as _s_u_n_s_i_z_e,
which causes makes it assume the --ss option.
The _r_o_w_s and
_c_o_l_u_m_n_s arguments must appear last; though they are normally
associated with the --ss option, they are parsed separately.
FILES
-
/etc/termcap
-
for the base termcap entry to modify.
-
~/.cshrc
-
user's alias for the command.
SEE ALSO
csh(1), tset(1), xterm(1)
AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See
X(7)
for a complete copyright notice.