|TPUT(1)||General Commands Manual||TPUT(1)|
tpututility makes terminal-dependent information available to users or shell applications.
The options are as follows:
TERMvariable from the environment.
tput outputs a string if the
attribute is of type string or a number if it is of
type integer. If the attribute is of type boolean,
tput exits 0 if the terminal has the capability or 1
if it does not. Each attribute should be a string
defined in either
If the attribute is of type string and takes arguments (e.g., cursor movement, the terminfo “cup” sequence) the arguments are taken from the command line immediately following the attribute.
The following special attributes are available:
tputis based on the last attribute specified. If the attribute is of type string or of type integer the exit value is as follows:
If the attribute is of type boolean,
exits with a value of 0 if the terminal has this attribute or 1 if it does
tput clear cup 5 10
tput cup 6 11 dch 6
tpututility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.
The flag [
-S] is an extension to that
clearutility implementing the functionality of
clearfirst appeared in 2BSD. The
tpututility appeared in 4.4BSD.
tputcan't really distinguish between different types of attributes.
|January 15, 2012||OpenBSD-5.1|