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 XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012. All UNIX systems.
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 9.6 patch 1 Documentation Build 5.