X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Ftput.1;h=0f984a743056c85da3fd859ce65bbfe8d5b6a756;hp=522d921152d22395979afdc33f2e3c66169effba;hb=5c2245b6fc619f8d96ce940281dfbf13b5b8900b;hpb=dc690a36a0e53e2c2ecd99c971cd749f78275fdc diff --git a/man/tput.1 b/man/tput.1 index 522d9211..0f984a74 100644 --- a/man/tput.1 +++ b/man/tput.1 @@ -27,7 +27,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: tput.1,v 1.52 2017/01/21 17:38:30 tom Exp $ +.\" $Id: tput.1,v 1.55 2017/08/19 14:26:42 tom Exp $ .TH @TPUT@ 1 "" .ds d @TERMINFO@ .ds n 1 @@ -43,7 +43,7 @@ .SH SYNOPSIS \fB@TPUT@\fR [\fB\-T\fR\fItype\fR] \fIcapname\fR [\fIparameters\fR] .br -\fB@TPUT@\fR [\fB\-T\fR\fItype\fR] \fBclear\fR +\fB@TPUT@\fR [\fB\-T\fR\fItype\fR] [\fB\-x\fP] \fBclear\fR .br \fB@TPUT@\fR [\fB\-T\fR\fItype\fR] \fBinit\fR .br @@ -86,14 +86,6 @@ For a complete list of capabilities and the \fIcapname\fR associated with each, see \fBterminfo\fR(5). .SS Options .TP -\fB\-T\fR\fItype\fR -indicates the \fItype\fR of terminal. -Normally this option is -unnecessary, because the default is taken from the environment -variable \fBTERM\fR. -If \fB\-T\fR is specified, then the shell -variables \fBLINES\fR and \fBCOLUMNS\fR will also be ignored. -.TP \fB\-S\fR allows more than one capability per invocation of \fB@TPUT@\fR. The capabilities must be passed to \fB@TPUT@\fR from the standard input @@ -103,13 +95,33 @@ The \fB\-S\fR option changes the meaning of the \fB0\fR and \fB1\fR boolean and string exit codes (see the EXIT CODES section). .IP -Again, \fB@TPUT@\fR uses a table and the presence of parameters in its input +Because some capabilities may use +\fIstring\fP parameters rather than \fInumbers\fP, +\fB@TPUT@\fR uses a table and the presence of parameters in its input to decide whether to use \fBtparm\fR(3X), and how to interpret the parameters. .TP +\fB\-T\fR\fItype\fR +indicates the \fItype\fR of terminal. +Normally this option is +unnecessary, because the default is taken from the environment +variable \fBTERM\fR. +If \fB\-T\fR is specified, then the shell +variables \fBLINES\fR and \fBCOLUMNS\fR will also be ignored. +.TP \fB\-V\fR reports the version of ncurses which was used in this program, and exits. +.TP +.B \-x +do not attempt to clear the terminal's scrollback buffer +using the extended \*(``E3\*('' capability. .SS Commands +A few commands (\fBinit\fP, \fBreset\fP and \fBlongname\fP) are +special; they are defined by the \fB@TPUT@\fP program. +The others are the names of \fIcapabilities\fP from the terminal database +(see \fBterminfo\fR(5) for a list). +Although \fBinit\fP and \fBreset\fP resemble capability names, +\fB@TPUT@\fP uses several capabilities to perform these special functions. .TP \fIcapname\fR indicates the capability from the terminal database. @@ -415,6 +427,18 @@ which used \fBtput\fP to clear the screen. .PP Both of these appeared in 4.4BSD, becoming the \*(lqmodern\*(rq BSD implementation of \fBtput\fP. +.PP +This implementation of \fBtput\fP began from a different source than +AT&T or BSD: Ross Ridge's \fImytinfo\fP package, published on +\fIcomp.sources.unix\fP in December 1992. +Ridge's program made more sophisticated use of the terminal capabilities +than the BSD program. +Eric Raymond used the \fBtput\fP program +(and other parts of \fImytinfo\fP) in ncurses in June 1995. +Using the portions dealing with terminal capabilities +almost without change, +Raymond made improvements to the way the command-line parameters +were handled. .SH PORTABILITY .PP This implementation of \fBtput\fP differs from AT&T \fBtput\fP in