resize

set TERMCAP and terminal settings to current xterm window size 

Command


SYNOPSIS

resize [-c | -u]


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 XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012. 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 Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
csh, sh, tset, xterm


PTC MKS Toolkit 9.6 Documentation Build 9.