The resize utility generates and displays 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, 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 (csh), the following alias could be defined in the user's .cshrc:
alias rs 'set noglob; eval `resize -c`'
After resizing the window, the user would type:
The exact command generated by resize depends upon the current setting of the SHELL environment variable. If SHELL indicates a Korn or Bourne-Again shell (such as sh, ksh, or bash), resize generates a sh-compatible command. If SHELL indicates a C Shell (such as csh), resize generates a csh-compatible command.
resize > $TMPDIR/out sh $TMPDIR/out
generates csh-compatible commands regardless of the setting of SHELL.
generates sh-compatible commands regardless of the setting of SHELL.
is the base termcap entry to modify.
contains the user's alias for the command.
Windows NT 4.0. Windows 2000. Windows XP. Windows Server 2003. All UNIX systems.
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.5 Documentation Build 3.