Main index | Section 1 | 日本語 | Options |
The clear utility executes the
tput clear
command, ignoring any arguments.
The only option to tput is:
| |
The terminal name as specified in the termcap(5) database, for example, "vt100" or "xterm". If not specified, tput retrieves the " TERM" variable from the environment unless that too is not specified, in which case an error message will be sent to standard error and the error status will be 2. | |
The tput utility outputs a string for each attribute that is of type string; a number for each of type integer. Otherwise, tput exits 0 if the terminal has the capability and 1 if it does not, without further action.
If an attribute is of type string, and takes arguments (e.g.amp; cursor movement, the termcap "cm" capability) the arguments are taken from the command line immediately following the attribute.
The following special attributes are available. The first three use the capabilities of the specified terminal, and only work if compatible with the utility's terminal.
clear | Clear the screen (the termcap(5) "cl" capability). |
init | Initialize the terminal (the termcap(5) "is" capability). |
reset | Reset the terminal (the termcap(5) "rs" capability). |
longname | |
Print the descriptive name of the user's terminal type. | |
TERM |
The terminal name, if set and
|
0 | If the last attribute is of type string or integer, its value was successfully written to standard output. If the attribute is of type boolean, the terminal does have the attribute. Otherwise, no attribute was specified. |
1 | If the last attribute is of type boolean, this terminal does not have the attribute. |
2 |
Usage error.
For example, see
|
3 | No information is available about the specified terminal type. |
Some termcap entries depend upon having a '%' in them that is just a '%' and nothing more. Right now we just warn about them if they do not have a valid type declaration. These warnings are sent to stderr.
TPUT (1) | June 15, 2002 |
Main index | Section 1 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If you sat a monkey down in front of a keyboard, the first thing typed would be a unix command. | ” |
— Bill Lye |