version 1.2, 1993/08/01 07:27:31
|
version 1.3, 1994/01/25 00:43:07
|
Line 42
|
Line 42
|
.Nm tput |
.Nm tput |
.Op Fl T Ar term |
.Op Fl T Ar term |
.Ar attribute |
.Ar attribute |
|
.Op Ar attribute-args |
|
.Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Tput |
.Nm Tput |
makes terminal-dependent information available to users or shell |
makes terminal-dependent information available to users or shell |
Line 68 Otherwise,
|
Line 70 Otherwise,
|
exits 0 if the terminal has the capability and 1 if it does not, |
exits 0 if the terminal has the capability and 1 if it does not, |
without further action. |
without further action. |
.Pp |
.Pp |
|
For attributes that require numeric arguments, |
|
.Nm tput |
|
will use the next argument(s) from the command line. |
|
.Pp |
The following special attributes are available: |
The following special attributes are available: |
.Bl -tag -width Ar |
.Bl -tag -width Ar |
.It Ar clear |
.It Ar clear |
Line 97 If the attribute is of type boolean,
|
Line 103 If the attribute is of type boolean,
|
exits 0 if the terminal has this attribute, and 1 if it does not. |
exits 0 if the terminal has this attribute, and 1 if it does not. |
.Nm Tput |
.Nm Tput |
exits 2 if any error occurred. |
exits 2 if any error occurred. |
|
.Sh EXAMPLES |
|
.Bl -tag -width "tput cm 6 11 DC 6" -compact |
|
.It Li "tput cl cm 5 10" |
|
clear the screen and goto line 5 column 10 |
|
.Pp |
|
.It Li "tput cm 6 11 DC 6" |
|
goto line 6 column 11 and delete 6 characters |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr termcap 3 , |
.Xr termcap 3 , |
.Xr termcap 5 |
.Xr termcap 5 |