tty_variable

Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 08 February 2009
Index Return to Main Contents

 

NAME

tty_variable - return the current width of the terminal (tty)

 

SYNOPSIS

edrc/lib/tty_variable [ -h ]

tty_variable variable [ device ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

returns the current value of a terminal (tty) setting.

This command allows to process the output of the stty(1) command in a cross operating system compatible format.

 

OPTIONS

-h
print usage message.

variable
tty variable value to be printed. Possible variables, among others, are: speed, rows, columns, line, intr, quit, erase, kill, eof, eol, eol2, start, stop, susp, rprnt, werase, lnext, flush, min and time.

device
tty device file to be read from. If not specified the device is resolved by the tty(1) command. If tty does not return a value, the default terminal device /dev/tty is used.

 

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_columns(3), tty(1), stty(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

tty_variable was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net . 

 

COPYRIGHT

Copyright © 2009 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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 00:14:31 GMT, March 08, 2025