tsize
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 03 February 2013
Index
Return to Main Contents
NAME
tsize - print terminal size
SYNOPSIS
edrc/lib/tsize
AVAILABILITY
WA2L/edrc
DESCRIPTION
this command returns the current width and height of the terminal
in the COLUMNS and LINES variables. This output can be used directly
to initialize the environment variables using the
eval
command:
eval `tsize`
The output of
tsize
is identical to the
resize(1)
command as provided when X11 is installed. As long as
resize
is available on the system it is used internally to resolve the
terminal size, if not, a fallback exists to evaluate the terminal
without the use of
resize.
Therefore it is not imperative to have X11 installed on the
system when using
tsize
to resolve the terminal size.
OPTIONS
-
EXIT STATUS
- 0
-
always.
FILES
-
EXAMPLES
-
SEE ALSO
edrcintro(1),
resize(1),
tty(1),
NOTES
-
BUGS
-
AUTHOR
tsize was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2013
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:54:48 GMT, August 28, 2024