X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Ftput.1.html;h=f754de3cc43cc516e812114a65d710c07eb624fe;hp=32a8b22ae05b23b103c8c4210deae926dd8c8b1e;hb=29a36e53e1f77a0c3672f2e267d573823d6a9a60;hpb=4298026c68384077462178f8018c8c1add0c3cdf diff --git a/doc/html/man/tput.1.html b/doc/html/man/tput.1.html index 32a8b22a..f754de3c 100644 --- a/doc/html/man/tput.1.html +++ b/doc/html/man/tput.1.html @@ -27,7 +27,7 @@ * sale, use or other dealings in this Software without prior written * * authorization. * **************************************************************************** - * @Id: tput.1,v 1.42 2016/07/30 21:01:09 tom Exp @ + * @Id: tput.1,v 1.44 2016/08/20 23:40:31 tom Exp @ --> @@ -329,33 +329,51 @@ The tput command was begun by Bill Joy in 1980. The ini- tial version only cleared the screen. - Keith Bostic replaced this in 1989 with a new implementa- - tion based on the AT&T SystemV program tput. Like the - AT&T program, Bostic's version accepted some parameters - named for terminfo capabilities (clear, init, longname and - reset). However (because he had only termcap available), - it accepted termcap names for other capabilities. - - At the same time, Bostic added a shell script named + AT&T System V provided a different tput command, whose + init and reset subcommands (more than half the program) + were incorporated from the reset feature of BSD tset writ- + ten by Eric Allman. Later the corresponding source code + for reset was removed from the BSD tset (in June 1993, + released in 4.4BSD-Lite a year later). + + Keith Bostic replaced the BSD tput command in 1989 with a + new implementation based on the AT&T System V program + tput. Like the AT&T program, Bostic's version accepted + some parameters named for terminfo capabilities (clear, + init, longname and reset). However (because he had only + termcap available), it accepted termcap names for other + capabilities. Also, Bostic's BSD tput did not modify the + terminal I/O modes as the earlier BSD tset had done. + + At the same time, Bostic added a shell script named "clear", which used tput to clear the screen. - Both of these appeared in 4.4BSD, becoming the "modern" + Both of these appeared in 4.4BSD, becoming the "modern" BSD implementation of tput.

PORTABILITY

-       This implementation of tput differs from AT&T tput in  two
+       This  implementation of tput differs from AT&T tput in two
        important areas:
 
-       o   tput  writes to the standard output.  That need not be
-           a regular terminal.
-
-           The AT&T implementation's init and reset commands  use
-           the tset source, which manipulates terminal modes.  It
-           successively tries standard  output,  standard  error,
-           standard  input  before falling back to "/dev/tty" and
-           finally just assumes a 1200Bd terminal.  When updating
-           terminal modes, it ignores errors.
+       o   tput capname writes to the standard output.  That need
+           not  be  a regular terminal.  However, the subcommands
+           which manipulate terminal modes may not use the  stan-
+           dard output.
+
+           The  AT&T implementation's init and reset commands use
+           the BSD (4.1c) tset source, which manipulates terminal
+           modes.   It  successively tries standard output, stan-
+           dard error, standard  input  before  falling  back  to
+           "/dev/tty" and finally just assumes a 1200Bd terminal.
+           When updating terminal modes, it ignores errors.
+
+           Until changes made after ncurses  6.0,  tput  did  not
+           modify  terminal  modes.   tput  now  uses  a  similar
+           scheme, using functions shared with  tset  (and  ulti-
+           mately  based  on the 4.4BSD tset).  If it is not able
+           to open a terminal, e.g., when running in  cron,  tput
+           will return an error.
 
        o   AT&T  tput guesses the type of its capname operands by
            seeing if all of the characters are numeric, or not.
@@ -420,7 +438,7 @@
        clear(1),    stty(1),   tabs(1),   tset(1),   terminfo(5),
        curs_termcap(3x).
 
-       This describes ncurses version 6.0 (patch 20160730).
+       This describes ncurses version 6.0 (patch 20160820).