MPE/iX Shell and Utilities Reference Manual, Vol 2

tput(1) MPE/iX Shell and Utilities tput(1)
ENVIRONMENT VARIABLES
tput uses the following environment variables:
TERM
contains the current terminal type.
TERMINFO
can be used to override the default database.
DIAGNOSTICS
tput may return the following status values:
0 tput successfully wrote an appropriate character sequence to change the terminal’s
characteristics or a boolean terminfo variable is TRUE.
1 A boolean terminfo variable is FALSE.
2 action was not one of the recognized keywords or you specified invalid command line
option.
3 tput has no information about the terminal type given by –T or
TERM
.
4 Requested action cannot be performed on your type of terminal.
>4 An error occurred.
Messages
Message: Missing terminal type after -T.
Cause: You specified the –T option without specifying the terminal type as an argu-
ment.
Action: Provide the missing terminal type.
Message: No terminfo database.
Cause: tput was unable to find the terminfo database.
Action: Set the environment variable
TERMINFO
to point at a valid terminfo database.
Message: Unknown option "–option"
Cause: You specified an option that is not valid for tput.
Action: Check the DESCRIPTION section for a list of valid tput options.
Message: Unknown terminal "term".
Cause: You specified a terminal type with the –T option, but that terminal type was not
found in the terminfo database.
Action: Check that the terminal type exists, and that you spelled it correctly.
Commands and Utilities 1-609