Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ resize(X) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(C)

tset(C)

xterm(X)


 resize(X)                     06 January 1993                      resize(X)


 Name

    resize - utility to set TERMCAP and terminal settings to current window
    size

 Command syntax

    resize [-u] [-s [row col]]

 Description

    resize prints a shell command for setting the TERM and TERMCAP environ-
    ment variables to indicate the current size of the scoterm or xterm win-
    dow 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 can be
    defined in the user's .cshrc:

       alias resize '/usr/bin/X11/resize|egrep \'(LINES|COLUMNS)\' \
       >! ~/.resize; source ~/.resize'


    From the Korn shell (/bin/ksh), the following alias can be defined in the
    user's .profile:

       alias resize='eval `/usr/bin/X11/resize`'


    After setting the csh or ksh aliases, after resizing a window but before
    running an application, type:

       resize


    From the Bourne shell (/bin/sh, after resizing a window but before run-
    ning an application, type:

       eval `/usr/bin/X11/resize`


 Options

    The following options may be used with resize:

    -u   This option indicates that Bourne shell commands should be generated
         even if the user's current shell is not /bin/sh.

    -c   This option indicates that C shell commands should be generated even
         if the user's current shell is not /bin/csh.

    -s [rows columns]
         This option indicates that that Sun console escape sequences will be
         used instead of the special xterm escape code.  If rows and columns
         are given, resize will ask the xterm window to resize itself.  How-
         ever, the window manager may choose to disallow the change.


 Files


    /etc/termcap   for the base termcap entry to modify

    ~/.cshrc       user's alias for the command


 See also

    csh(C), tset(C), xterm(X)


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026