resize(1) —
NAME
resize − set LINES, COLUMNS, and terminal settings to current window size
SYNOPSIS
resize [−u] [−c] [−s [row col]]
DESCRIPTION
Resize prints a shell command for setting the LINES and COLUMNS environment variables to indicate the current size of the xterm or xpcterm 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 else redirected to a file which 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:
% alias rs ’set noglob; ‘eval resize‘’
After resizing the window, the user would type:
% rs
Users of the Bourne shell (known as /bin/sh) and Korn shell (/bin/ksh) can define a command function in the user’s .profile instead:
$ rs() { eval ‘resize‘; }
After resizing the window, the user would type:
$ rs
OPTIONS
The following options may be used with resize:
−u This option indicates that Bourne or Korn shell commands should be generated even if the user’s current shell isn’t /bin/sh or /bin/ksh.
−c This option indicates that C shell commands should be generated even if the user’s current shell isn’t /bin/csh.
−s [rows columns]
This option indicates that Sun workstation console escape sequences will be used instead of the special xterm or xpcterm escape codes. If rows and columns are given, resize will ask xterm or xpcterm to resize itself. However, the window manager may choose to disallow the change.
FILES
/etc/termcap for the base termcap entry to modify
~/.cshrc C-shell user’s alias for the command
$HOME/.profile
Bourne- or Korn-shell user’s function for the command
SEE ALSO
xterm(1) and xpcterm(1). csh(1) and tset(1).
AUTHORS
Mark Vandevoorde, MIT-Athena
Edward Moy, Berkeley
Enhanced by SunSoft to support the xpcterm terminal emulator.
COPYRIGHT
Copyright (c) 1984, 1985 by Massachusetts Institute of Technology.
See X(1) for a complete copyright notice.
BUGS
The −u or −c must appear to the left of −s if both are specified.
\*U — Version 1.0