tty_columns
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 22 February 2014
Index
Return to Main Contents
NAME
tty_columns - return the current width of the terminal (tty)
SYNOPSIS
edrc/lib/tty_columns
[
-h
]
tty_columns
AVAILABILITY
WA2L/edrc
DESCRIPTION
returns the current width of the terminal (tty).
In some circumstances the
$COLUMN
environment variable does not contain the correct
width of the terminal,
tty_columns
does.
OPTIONS
- -h
-
print usage message.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 4
-
usage message printed.
FILES
- /dev/tty
-
terminal device file. This device file is read if
the resolution of the current pseudo device of the
terminal is not possible.
EXAMPLES
-
SEE ALSO
edrcintro(1),
tty_variable(3),
tty(1),
stty(1)
NOTES
tty_columns
calls the command
tty_variable columns
internally, to resolve the terminal width.
Therefore
tty_variable(3)
can be used to replace the call to
tty_columns.
BUGS
-
AUTHOR
tty_columns was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2014
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: 00:14:31 GMT, March 08, 2025