Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   tput    ( 1 )

инициализировать терминал или запросить базу данных terminfo (initialize a terminal or query terminfo database)

  Name  |  Synopsis  |  Description  |  Examples  |  Files  |    Exit    |  Diagnostic  |  History  |  Portability  |  See also  |

Статус выхода (Exit)

If the -S option is used, @TPUT@ checks for errors from each
       line, and if any errors are found, will set the exit code to 4
       plus the number of lines with errors.  If no errors are found,
       the exit code is 0.  No indication of which line failed can be
       given so exit code 1 will never appear.  Exit codes 2, 3, and 4
       retain their usual interpretation.  If the -S option is not used,
       the exit code depends on the type of capname:

boolean a value of 0 is set for TRUE and 1 for FALSE.

string a value of 0 is set if the capname is defined for this terminal type (the value of capname is returned on standard output); a value of 1 is set if capname is not defined for this terminal type (nothing is written to standard output).

integer a value of 0 is always set, whether or not capname is defined for this terminal type. To determine if capname is defined for this terminal type, the user must test the value written to standard output. A value of -1 means that capname is not defined for this terminal type.

other reset or init may fail to find their respective files. In that case, the exit code is set to 4 + errno.

Any other exit code indicates an error; see the DIAGNOSTICS section.