summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-04-27 08:45:46 +0000
committerjmg <jmg@FreeBSD.org>1997-04-27 08:45:46 +0000
commit4deb06a037f7e9be2228918e7ece7bba6efef34c (patch)
treecc4a2d805f2a30d0238a14722ccee2a6065108eb /usr.bin/tput
parent49413144285b96e53655b462df08b8d18fa92e82 (diff)
downloadFreeBSD-src-4deb06a037f7e9be2228918e7ece7bba6efef34c.zip
FreeBSD-src-4deb06a037f7e9be2228918e7ece7bba6efef34c.tar.gz
``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)
add missing Id's other minor clean ups
Diffstat (limited to 'usr.bin/tput')
-rw-r--r--usr.bin/tput/tput.149
1 files changed, 30 insertions, 19 deletions
diff --git a/usr.bin/tput/tput.1 b/usr.bin/tput/tput.1
index 3baa4ce..403f4cc 100644
--- a/usr.bin/tput/tput.1
+++ b/usr.bin/tput/tput.1
@@ -30,6 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)tput.1 8.2 (Berkeley) 3/19/94
+.\" $Id$
.\"
.Dd March 19, 1994
.Dt TPUT 1
@@ -38,32 +39,37 @@
.Nm tput
.Nd terminal capability interface
.Sh SYNOPSIS
-.Nm tput
+.Nm
.Op Fl T Ar term
.Ar attribute
.Sh DESCRIPTION
-.Nm Tput
-makes terminal-dependent information available to users or shell
+The
+.Nm
+command makes terminal-dependent information available to users or shell
applications.
The options are as follows:
.Bl -tag -width Ds
.It Fl T
The terminal name as specified in the
.Xr termcap
-database, for example, ``vt100'' or ``xterm''.
+database, for example,
+.Dq vt100
+or
+.Dq xterm .
If not specified,
-.Nm tput
+.Nm
retrieves the
.Dq Ev TERM
variable from the environment.
.El
.Pp
-.Nm Tput
-outputs a string if the
+The
+.Nm
+command outputs a string if the
.Ar attribute
is of type string; a number if it is of type integer.
Otherwise,
-.Nm tput
+.Nm
exits 0 if the terminal has the capability and 1 if it does not,
without further action.
.Pp
@@ -80,36 +86,41 @@ The following special attributes are available:
.It clear
Clear the screen (the
.Xr termcap
-``cl'' sequence).
+.Dq cl
+sequence).
.It init
Initialize the terminal (the
.Xr termcap
-``is'' sequence).
+.Dq is
+sequence).
.It longname
Print the descriptive name of the user's terminal type.
.It reset
Reset the terminal (the
.Xr termcap
-``rs'' sequence).
+.Dq rs
+sequence).
.Sh DIAGNOSTICS
The exit value of
-.Nm tput
+.Nm
is based on the last attribute specified.
If the attribute is of type string or of type integer,
-.Nm tput
+.Nm
exits 0 if the attribute is defined for this terminal type and 1
if it is not.
If the attribute is of type boolean,
-.Nm tput
+.Nm
exits 0 if the terminal has this attribute, and 1 if it does not.
-.Nm Tput
-exits 2 if any error occurred.
+The
+.Nm
+command exits 2 if any error occurred.
.Sh SEE ALSO
.Xr termcap 3 ,
.Xr termcap 5
.Sh BUGS
-.Nm Tput
-can't really distinguish between different types of attributes.
+The
+.Nm
+command can't really distinguish between different types of attributes.
.Pp
Some termcap entries depend upon having a
.Sq %
@@ -121,5 +132,5 @@ stderr.
.Sh HISTORY
The
.Nm
-command appears in
+command appeared in
.Bx 4.4 .
OpenPOWER on IntegriCloud