Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tput(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty, STTY

terminfo



TPUT(1,C)                   AIX Commands Reference                    TPUT(1,C)



-------------------------------------------------------------------------------
tput



PURPOSE

Queries the terminfo file.

SYNTAX


        +- -T$TERM -+   +-------+   +-----------+
tput ---|           |---|       |---|           |---|
        +- -Ttype --+   +- cmd -+   +- capname -+


DESCRIPTION

The tput command uses the terminfo file to make terminal-dependent information
available to the shell.  The output of the tput command is a string if the
attribute capname (for capability name) is of type string or an integer if the
attribute is of type integer.  If the attribute is of type Boolean, the tput
command simply sets the exit value (0 for TRUE, 1 for FALSE), and produces no
other output.

FLAGS

-Ttype      Indicates the type of work station.  Normally, the value of type is
            supplied by the environment variable $TERM.

capname     Indicates the attribute from the terminfo file.  For more
            information, see the terminfo file in AIX Operating System
            Technical Reference.

EXAMPLES

  1. To echo the clear-screen sequence for the current work station:

      tput  clear

  2. To display the number of columns for the current work station:

      tput  cols

  3. To display the number of columns for the 450 work station:

      tput  -T450  cols

  4. To set the shell variable "bold" to the highlight mode sequence for the
    current work station:




Processed November 8, 1990         TPUT(1,C)                                  1





TPUT(1,C)                   AIX Commands Reference                    TPUT(1,C)



      bold=`tput  smso`

    This might be followed by a prompt:

      echo  "${bold}Please  type  in  your  name:  \c"

  5. To set the exit value to indicate if the current work station is a
    hardcopy terminal:

      tput  hc

FILES

/usr/lib/terminfo/?/*    Terminal descriptor files.
/usr/include/term.h      Definition files.
/usr/include/curses.h

RELATED INFORMATION

See the following command:  "stty, STTY."

See the terminfo file in AIX Operating System Technical Reference.

































Processed November 8, 1990         TPUT(1,C)                                  2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026