2011-09-17 05:51:57 -06:00
|
|
|
.\" $XTermId: resize.man,v 1.20 2011/09/11 19:28:54 tom Exp $
|
2006-11-26 04:11:12 -07:00
|
|
|
.\"
|
2009-09-05 09:58:09 -06:00
|
|
|
.\" updated by Thomas E. Dickey for XFree86, 1998-2006.
|
2006-11-26 04:11:12 -07:00
|
|
|
.\"
|
2009-09-05 09:58:09 -06:00
|
|
|
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
|
|
|
.ie \n(.g .ds AQ \(aq
|
|
|
|
.el .ds AQ '
|
|
|
|
.ie \n(.g .ds `` \(lq
|
|
|
|
.el .ds `` ``
|
|
|
|
.ie \n(.g .ds '' \(rq
|
|
|
|
.el .ds '' ''
|
2006-11-26 04:11:12 -07:00
|
|
|
.TH RESIZE 1 __vendorversion__
|
|
|
|
.SH NAME
|
2011-08-28 11:40:55 -06:00
|
|
|
resize \- set environment and terminal settings to current xterm window size
|
2006-11-26 04:11:12 -07:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B resize
|
|
|
|
[ \fB\-u\fP | \fB\-c\fP ] [ \fB\-s\fP [ \fIrow col\fP ] ]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Resize
|
2011-08-28 11:40:55 -06:00
|
|
|
prints a shell command for setting the appropriate environment variables
|
2006-11-26 04:11:12 -07:00
|
|
|
to indicate the current size of \fIxterm\fP window from which the command
|
2011-09-17 05:51:57 -06:00
|
|
|
is run.
|
|
|
|
For this output to take effect, \fIresize\fP must either be evaluated
|
2006-11-26 04:11:12 -07:00
|
|
|
as part of the command line (usually done with a shell alias or function) or
|
2011-09-17 05:51:57 -06:00
|
|
|
else redirected to a file which can then be read in.
|
|
|
|
From the C shell (usually
|
2011-08-28 11:40:55 -06:00
|
|
|
known as \fI/bin/csh\fP), the following alias could be defined in the
|
2006-11-26 04:11:12 -07:00
|
|
|
user's \fI.cshrc\fP:
|
|
|
|
.sp
|
|
|
|
.nf
|
2009-09-05 09:58:09 -06:00
|
|
|
% alias rs \*(AQset noglob; eval \fC\`\fPresize\fC\`\fP\*(AQ
|
2006-11-26 04:11:12 -07:00
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
After resizing the window, the user would type:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
% rs
|
|
|
|
.fi
|
|
|
|
.sp
|
2011-08-28 11:40:55 -06:00
|
|
|
Users of versions of the Bourne shell (usually known as \fI/bin/sh\fP) that
|
2006-11-26 04:11:12 -07:00
|
|
|
don't have command
|
2009-09-05 09:58:09 -06:00
|
|
|
functions will need to send the output to a temporary file and then read it back
|
|
|
|
in with the \*(``.\*('' command:
|
2006-11-26 04:11:12 -07:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
$ resize > /tmp/out
|
|
|
|
$ .\0/tmp/out
|
|
|
|
.fi
|
2011-09-17 05:51:57 -06:00
|
|
|
.PP
|
|
|
|
.I Resize
|
|
|
|
determines the user's current shell by first checking if \fB$SHELL\fP
|
|
|
|
is set, and using that.
|
|
|
|
Otherwise it determines the user's shell by looking in the password file.
|
|
|
|
Generally Bourne-shell variants (including \fIksh\fP)
|
|
|
|
do not modify \fB$SHELL\fP,
|
|
|
|
so it is possible for \fIresize\fP to be confused if one runs
|
|
|
|
\fIresize\fP from a Bourne shell spawned from a C shell.
|
2006-11-26 04:11:12 -07:00
|
|
|
.SH OPTIONS
|
|
|
|
The following options may be used with \fIresize\fP:
|
|
|
|
.TP 8
|
|
|
|
.B \-u
|
2011-08-28 11:40:55 -06:00
|
|
|
This option indicates that Bourne shell commands should be generated even if
|
2006-11-26 04:11:12 -07:00
|
|
|
the user's current shell isn't \fI/bin/sh\fP.
|
|
|
|
.TP 8
|
|
|
|
.B \-c
|
|
|
|
This option indicates that C shell commands should be generated even if the
|
|
|
|
user's current shell isn't \fI/bin/csh\fP.
|
|
|
|
.TP 8
|
|
|
|
.B \-s \fR[\fIrows columns\fP]
|
2011-08-28 11:40:55 -06:00
|
|
|
This option indicates that Sun console escape sequences will be used
|
2006-11-26 04:11:12 -07:00
|
|
|
instead of the VT100-style \fIxterm\fP escape codes.
|
|
|
|
If \fIrows\fP and
|
|
|
|
\fIcolumns\fP are given, \fIresize\fP will ask the \fIxterm\fP to resize
|
2011-09-17 05:51:57 -06:00
|
|
|
itself.
|
|
|
|
However, the window manager may choose to disallow the change.
|
|
|
|
.PP
|
2006-11-26 04:11:12 -07:00
|
|
|
Note that the Sun console escape sequences are recognized
|
|
|
|
by XFree86 \fIxterm\fP and
|
|
|
|
by \fIdtterm\fP.
|
|
|
|
The \fIresize\fP program may be installed as \fIsunsize\fP,
|
|
|
|
which causes makes it assume the \fB\-s\fP option.
|
2011-09-17 05:51:57 -06:00
|
|
|
.PP
|
2006-11-26 04:11:12 -07:00
|
|
|
The \fIrows\fP and
|
|
|
|
\fIcolumns\fP arguments must appear last; though they are normally
|
|
|
|
associated with the \fB\-s\fP option, they are parsed separately.
|
|
|
|
.SH FILES
|
|
|
|
.TP 15
|
|
|
|
/etc/termcap
|
|
|
|
for the base termcap entry to modify.
|
|
|
|
.TP 15
|
|
|
|
~/.cshrc
|
|
|
|
user's alias for the command.
|
2011-08-28 11:40:55 -06:00
|
|
|
.SH ENVIRONMENT
|
|
|
|
.TP 15
|
|
|
|
TERM
|
|
|
|
set to "__default_termname__" if not already set.
|
|
|
|
.TP 15
|
|
|
|
TERMCAP
|
|
|
|
variable set on systems using termcap
|
|
|
|
.TP 15
|
|
|
|
COLUMNS, LINES
|
|
|
|
variables set on systems using terminfo
|
2006-11-26 04:11:12 -07:00
|
|
|
.SH "SEE ALSO"
|
2007-08-25 12:53:27 -06:00
|
|
|
csh(1), tset(1), xterm(__mansuffix__)
|
2006-11-26 04:11:12 -07:00
|
|
|
.SH AUTHORS
|
|
|
|
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
|
|
|
|
.br
|
|
|
|
Copyright (c) 1984, 1985 by X Consortium
|
|
|
|
.br
|
|
|
|
See
|
|
|
|
.IR X (__miscmansuffix__)
|
|
|
|
for a complete copyright notice.
|