X11.apps.xterm
X11.apps.xterm
-
resize : redimensionnement des fenêtres
La commande '/usr/lpp/X11/bin/resize' permet de repositionner les paramètres et variables associés à la valeur de TERM/TERMCAP et pour correspondre à la taille de la fenêtre courante.
Notamment après le redimensionnement d'une fenêtre Putty ou Xterm.
Le paquet/fileset contenant cette commande est 'X11.apps.xterm'.
La syntaxe officielle(V6.1) est donnée ci-dessous:
resize Command
Purpose
Sets the TERMCAP environment variable and terminal settings to the current window size.
Syntax
resize [ -c | -u ] [ -s [ Rows Columns ] ]
Description
The resize command utility prints 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, the resize command must
either be evaluated as part of the command line (usually done with a shell alias or function) or else be redirected to a
file that can then be read in. From the C shell (usually known as /bin/csh), the following alias could be defined in the
user's .cshrc file:% alias rs 'set noglob; `eval resize`'
After resizing the window, the user would enter:
% rs
Users of versions of the Bourne shell (usually known as /bin/sh) that do not have command functions will need to send the
output to a temporary file and then read it back in with the . (dot) command:$ resize >/tmp/out
$ . /tmp/outFlags
Item
Description
-c
Indicates that C shell commands should be generated even if the user's current shell is not /bin/csh.
-u
Indicates that Bourne shell commands should be generated even if the user's current shell is not a Bourne shell.
-s [Rows Columns]
Indicates that Sun console escape sequences will be used instead of the special xterm escape code. If the Rows and
Columns parameters are given, the resize command will ask the xterm window to resize itself. However, the window
manager may choose to disallow the change.Note: The -c or -u must appear to the left of -s if both are specified.
File
Item
Description
/etc/termcap
Provides modification for the base termcap entry.