<s>
In	O
computing	O
,	O
tput	B-Device
is	O
a	O
standard	O
Unix	B-Application
operating	I-Application
system	I-Application
command	I-Application
which	O
makes	O
use	O
of	O
terminal	B-Application
capabilities	I-Application
.	O
</s>
<s>
Depending	O
on	O
the	O
system	O
,	O
tput	B-Device
uses	O
the	O
terminfo	B-Device
or	O
termcap	B-Application
database	O
,	O
as	O
well	O
as	O
looking	O
into	O
the	O
environment	O
for	O
the	O
terminal	O
type	O
.	O
</s>
<s>
Tput	B-Device
was	O
provided	O
in	O
UNIX	B-Operating_System
System	I-Operating_System
V	I-Operating_System
in	O
the	O
early	O
1980s	O
.	O
</s>
<s>
A	O
clone	O
of	O
the	O
AT&T	O
tput	B-Device
was	O
submitted	O
to	O
volume	O
7	O
of	O
the	O
mod.sources	O
newsgroup	O
(	O
later	O
comp.sources.unix	O
)	O
in	O
September	O
1986	O
.	O
</s>
<s>
In	O
contrast	O
to	O
the	O
System	B-Operating_System
V	I-Operating_System
program	O
,	O
the	O
clone	O
used	O
termcap	B-Application
rather	O
than	O
terminfo	B-Device
.	O
</s>
<s>
It	O
accepted	O
command-line	O
parameters	O
for	O
the	O
cm	O
(	O
cursor	O
addressing	O
)	O
capability	O
,	O
and	O
recognized	O
terminfo	B-Device
capability	O
names	O
.	O
</s>
<s>
System	B-Operating_System
V	I-Operating_System
Release	I-Operating_System
3	I-Operating_System
provided	O
an	O
improved	O
version	O
which	O
combined	O
the	O
different	O
initialization	O
capabilities	O
as	O
a	O
new	O
option	O
init	O
,	O
and	O
the	O
reset	O
capabilities	O
as	O
reset	O
,	O
thereby	O
simplifying	O
use	O
of	O
tput	B-Device
for	O
initializing	O
or	O
reinitializing	O
the	O
terminal	O
.	O
</s>
<s>
System	O
V	O
Release	O
3.2	O
added	O
several	O
printer-specific	O
capabilities	O
to	O
the	O
terminfo	B-Device
database	O
,	O
such	O
as	O
swidm	O
(	O
enter_doublewide_mode	O
)	O
which	O
tput	B-Device
could	O
use	O
.	O
</s>
<s>
System	B-Operating_System
V	I-Operating_System
Release	O
4	O
defined	O
additional	O
terminfo	B-Device
capabilities	O
including	O
standardized	O
ANSI	O
color	O
capabilities	O
setaf	O
and	O
setab	O
,	O
which	O
could	O
be	O
used	O
by	O
tput	B-Device
.	O
</s>
<s>
BSD	B-Operating_System
platforms	O
provided	O
a	O
different	O
implementation	O
of	O
tput	B-Device
in	O
4.3BSD-Reno	O
(	O
June	O
1990	O
)	O
.	O
</s>
<s>
It	O
used	O
termcap	B-Application
,	O
recognizing	O
only	O
termcap	B-Application
capability	O
names	O
,	O
and	O
did	O
not	O
accept	O
command-line	O
parameters	O
for	O
cursor-addressing	O
.	O
</s>
<s>
FreeBSD	B-Operating_System
used	O
this	O
in	O
1994	O
,	O
improving	O
it	O
by	O
accepting	O
one	O
or	O
two	O
numeric	O
command-line	O
parameters	O
.	O
</s>
<s>
Ross	O
Ridge	O
's	O
mytinfo	O
package	O
in	O
1992	O
provided	O
a	O
tput	B-Device
which	O
accepted	O
either	O
termcap	B-Application
or	O
terminfo	B-Device
capability	O
names	O
.	O
</s>
<s>
Like	O
the	O
Reno	O
implementation	O
,	O
it	O
did	O
not	O
pass	O
command-line	O
arguments	O
to	O
parameterized	O
capabilities	O
.	O
</s>
<s>
ncurses	B-Language
incorporated	O
the	O
mytinfo	O
code	O
in	O
June	O
1995	O
.	O
</s>
<s>
The	O
initial	O
version	O
added	O
a	O
-S	O
option	O
,	O
and	O
interpreted	O
command-line	O
parameters	O
as	O
described	O
in	O
the	O
System	B-Operating_System
V	I-Operating_System
Release	O
4	O
documentation	O
.	O
</s>
<s>
The	B-Application
Open	I-Application
Group	I-Application
defines	O
one	O
option	O
(	O
-T	O
,	O
to	O
specify	O
the	O
terminal	O
type	O
)	O
and	O
three	O
keywords	O
(	O
init	O
,	O
clear	O
and	O
reset	O
)	O
.	O
</s>
<s>
However	O
,	O
some	O
implementations	O
expect	O
a	O
termcap	B-Application
name	O
,	O
while	O
others	O
expect	O
a	O
terminfo	B-Device
name	O
.	O
</s>
<s>
All	O
System	B-Operating_System
V	I-Operating_System
Release	O
4	O
implementations	O
,	O
as	O
well	O
as	O
those	O
which	O
are	O
designed	O
to	O
be	O
compatible	O
,	O
also	O
recognize	O
a	O
-S	O
option	O
(	O
to	O
tell	O
tput	B-Device
to	O
read	O
data	O
from	O
the	O
standard	O
input	O
)	O
,	O
and	O
an	O
additional	O
keyword	O
longname	O
.	O
</s>
<s>
They	O
also	O
accept	O
command-line	O
parameters	O
,	O
usually	O
distinguishing	O
numeric	O
from	O
string	O
parameters	O
by	O
the	O
form	O
of	O
the	O
parameter	O
,	O
checking	O
for	O
all-numeric	O
characters	O
.	O
</s>
<s>
Using	O
a	O
different	O
approach	O
,	O
ncurses	B-Language
determines	O
the	O
expected	O
type	O
of	O
the	O
parameters	O
with	O
a	O
table	O
of	O
the	O
terminfo	B-Device
capabilities	O
which	O
use	O
string	O
parameters	O
,	O
eliminating	O
the	O
ambiguity	O
.	O
</s>
