Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tput(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty

terminfo

tput

PURPOSE

     Queries the terminfo file.

SYNOPSIS
     tput [ -Ttype ] capname


DESCRIPTION

     The  tput.  command  uses   the  terminfo  file  to  make
     terminal-dependent  information available  to the  shell.
     The output of tput. 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,  tput.  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:

           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

     The following command:  "stty."

     The terminfo file in  AIX Operating System Technical Ref-
     erence.

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