X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Ftput.1.html;h=17c55aad6f11001b0ccab10daa2ea7680d971e27;hp=606f7770a45968a2b7e4ae01f7a0b86b851540d6;hb=c633e5103a29a38532cf1925257b91cea33fd090;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/doc/html/man/tput.1.html b/doc/html/man/tput.1.html index 606f7770..17c55aad 100644 --- a/doc/html/man/tput.1.html +++ b/doc/html/man/tput.1.html @@ -5,7 +5,8 @@

NAME

-       tput - initialize a terminal or query terminfo database
+       tput,  reset  -  initialize  a  terminal or query terminfo
+       database
 
 
 
@@ -15,51 +16,55 @@ tput [-Ttype] reset tput [-Ttype] longname tput -S << + tput -V

DESCRIPTION

-       The  tput  utility  uses the terminfo database to make the
-       values of terminal-dependent capabilities and  information
+       The tput utility uses the terminfo database  to  make  the
+       values  of terminal-dependent capabilities and information
        available to the shell (see sh(1)), to initialize or reset
-       the terminal, or return the long  name  of  the  requested
-       terminal  type.   tput  outputs  a string if the attribute
-       (capability name) is of type string, or an integer if  the
+       the  terminal,  or  return  the long name of the requested
+       terminal type.  tput outputs a  string  if  the  attribute
+       (capability  name) is of type string, or an integer if the
        attribute is of type integer.  If the attribute is of type
        boolean, tput simply sets the exit code (0 for TRUE if the
-       terminal  has the capability, 1 for FALSE if it does not),
-       and produces no output.  Before using a value returned  on
-       standard  output,  the user should test the exit code [$?,
-       see sh(1)] to be sure it is 0.  (See the  EXIT  CODES  and
-       DIAGNOSTICS  sections.)   For a complete list of capabili-
-       ties and  the  capname  associated  with  each,  see  ter-
+       terminal has the capability, 1 for FALSE if it does  not),
+       and  produces no output.  Before using a value returned on
+       standard output, the user should test the exit  code  [$?,
+       see  sh(1)]  to  be sure it is 0.  (See the EXIT CODES and
+       DIAGNOSTICS sections.)  For a complete list  of  capabili-
+       ties  and  the  capname  associated  with  each,  see ter-
        minfo(5).
 
-       -Ttype indicates  the  type  of  terminal.   Normally this
+       -Ttype indicates the  type  of  terminal.   Normally  this
               option is unnecessary, because the default is taken
               from the environment variable TERM.  If -T is spec-
-              ified, then the shell variables LINES  and  COLUMNS
-              will  be  ignored,and the operating system will not
+              ified,  then  the shell variables LINES and COLUMNS
+              will be ignored,and the operating system  will  not
               be queried for the actual screen size.
 
        capname
               indicates the attribute from the terminfo database.
-              When  termcap  support  is compiled in, the termcap
+              When termcap support is compiled  in,  the  termcap
               name for the attribute is also accepted.
 
        parms  If the attribute is a string that takes parameters,
-              the  arguments  parms will be instantiated into the
-              string.  An all numeric argument will be passed  to
+              the arguments parms will be instantiated  into  the
+              string.   An all numeric argument will be passed to
               the attribute as a number.
 
-       -S     allows  more  than one capability per invocation of
+       -S     allows more than one capability per  invocation  of
               tput.  The capabilities must be passed to tput from
               the standard input instead of from the command line
-              (see example).  Only one  capname  is  allowed  per
-              line.   The  -S option changes the meaning of the 0
-              and 1 boolean and string exit codes (see  the  EXIT
+              (see  example).   Only  one  capname is allowed per
+              line.  The -S option changes the meaning of  the  0
+              and  1  boolean and string exit codes (see the EXIT
               CODES section).
 
+       -V     reports the version of ncurses which  was  used  in
+              this program, and exits.
+
        init   If  the  terminfo  database is present and an entry
               for the user's terminal exists (see -Ttype, above),
               the  following will occur: (1) if present, the ter-
@@ -88,6 +93,10 @@
               the terminal's description in the terminfo database
               [see term(5)].
 
+       If  tput  is  invoked  by a link named reset, this has the
+       same effect as tput reset.  See tset for comparison, which
+       has similar behavior.
+
 
 

EXAMPLES

@@ -108,8 +117,8 @@
             as the "home" cursor position).
 
        tput clear
-            Echo the clear-screen sequence for the current termi-
-            nal.
+            Echo  the  clear-screen  sequence  for  the   current
+            terminal.
 
        tput cols
             Print the number of columns for the current terminal.
@@ -117,7 +126,6 @@
        tput -T450 cols
             Print the number of columns for the 450 terminal.
 
-
        bold=`tput smso` offbold=`tput rmso`
             Set the shell variables bold, to begin stand-out mode
             sequence, and offbold, to end standout mode sequence,
@@ -138,11 +146,11 @@
             the  type  of terminal specified in the environmental
             variable TERM.
 
-       tput -S <<!
-       > clear
-       > cup 10 10
-       > bold
-       > !
+            tput -S <<!
+            > clear
+            > cup 10 10
+            > bold
+            > !
 
             This example shows tput processing several  capabili-
             ties  in  one  invocation.   This  example clears the
@@ -153,7 +161,7 @@
 
 

FILES

-       @DATADIR@/terminfo
+       /usr/share/terminfo
               compiled terminal description database
 
        /usr/include/curses.h
@@ -162,7 +170,7 @@
        /usr/include/term.h
               terminfo header file
 
-       @DATADIR@/tabset/*
+       /usr/share/tabset/*
               tab settings for some terminals, in a format appro-
               priate   to  be  output  to  the  terminal  (escape
               sequences that set  margins  and  tabs);  for  more
@@ -211,13 +219,15 @@
        responding exit codes.
 
        exit code   error message
-       0           (capname is a numeric variable that is not specified in the
-                   terminfo(5) database for this terminal type, e.g.
+       ---------------------------------------------------------------------
+       0           (capname is a numeric variable that is not specified  in
+                   the  terminfo(5)  database  for this terminal type, e.g.
                    tput -T450 lines and tput -T2621 xmc)
        1           no error message is printed, see the EXIT CODES section.
        2           usage error
        3           unknown terminal type or no terminfo database
        4           unknown terminfo capability capname
+       ---------------------------------------------------------------------
 
 
 
@@ -226,16 +236,6 @@ tion features used in the cup example, are not supported in BSD curses or in AT&T/USL curses before SVr4. - - - - - - - - - -