Unix and Linux Discussions Tagged with resize |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,458 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,988 |
Shell Programming and Scripting |
|
|
|
7 |
10,373 |
Red Hat |
|
|
|
5 |
47,172 |
Red Hat |
|
|
|
4 |
5,898 |
Programming |
|
|
|
1 |
6,534 |
SCO |
|
|
|
2 |
7,468 |
Linux |
|
|
|
20 |
26,305 |
Solaris |
|
|
|
3 |
14,976 |
Solaris |
|
|
|
1 |
12,098 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
10,653 |
Solaris |
|
|
|
1 |
5,296 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
6,528 |
Solaris |
|
|
|
2 |
3,331 |
UNIX Desktop Questions & Answers |
|
|
|
4 |
31,486 |
UNIX for Advanced & Expert Users |
resize(1X) resize(1X)
NAME
resize - set TERMCAP and terminal settings to current xterm window size
SYNOPSIS
resize [-u] [-c] [-s[row col]]
OPTIONS
The following options may be used with resize: This option indicates that Bourne shell commands should be generated even if the user's cur-
rent shell is not /bin/sh. This option indicates that C shell commands should be generated even if the user's current shell is not
/bin/csh. This option indicates that Sun console escape sequences will be used instead of the special xterm escape code. If rows and col-
umns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change.
DESCRIPTION
The resize command prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of 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 could be defined in the user's
% alias rs 'set noglob; eval `resize`'
After resizing the window, the user would type: % 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 tem-
porary file and the read it back in with the "." command:
$ resize > /tmp/out
$ . /tmp/out
FILES
for the base termcap entry to modify. user's alias for the command.
BUGS
The -u or -c must appear to the left of -s if both are specified.
SEE ALSO
csh(1), tset(1), xterm(1X)
AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See X(1X) for a complete copyright notice.
resize(1X)