SYNOPSIS
resize
[
DESCRIPTION
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:
rs
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.
If you run the resize command from the Windows command interpreter, you will need to send the output (a sh-compatible command) to a temporary file and then read it back in with sh:
resize > $TMPDIR/out sh $TMPDIR/out
Options
-c -
generates csh-compatible commands regardless of the setting of SHELL.
-u -
generates sh-compatible commands regardless of the setting of SHELL.
FILES
- $ROOTDIR/etc/termcap
-
is the base termcap entry to modify.
- ~/.cshrc
-
contains the user's alias for the command.
PORTABILITY
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. All UNIX systems.
AVAILABILITY
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 Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.