-</PRE><H2><a name="h2-EXAMPLES">EXAMPLES</a></H2><PRE>
- <B>tput</B> <B>init</B>
- Initialize the terminal according to the type of terminal in the
- environmental variable <B>TERM</B>. This command should be included in
- everyone's .profile after the environmental variable <B>TERM</B> has been
- exported, as illustrated on the <B>profile(5)</B> manual page.
-
- <B>tput</B> <B>-T5620</B> <B>reset</B>
- Reset an AT&T 5620 terminal, overriding the type of terminal in
- the environmental variable <B>TERM</B>.
-
- <B>tput</B> <B>cup</B> <B>0</B> <B>0</B>
- Send the sequence to move the cursor to row <B>0</B>, column <B>0</B> (the upper
- left corner of the screen, usually known as the "home" cursor
- position).
-
- <B>tput</B> <B>clear</B>
- Echo the clear-screen sequence for the current terminal.
-
- <B>tput</B> <B>cols</B>
- Print the number of columns for the current terminal.
-
- <B>tput</B> <B>-T450</B> <B>cols</B>
- Print the number of columns for the 450 terminal.
-
- <B>bold=`tput</B> <B>smso`</B> <B>offbold=`tput</B> <B>rmso`</B>
- Set the shell variables <B>bold</B>, to begin stand-out mode sequence,
- and <B>offbold</B>, to end standout mode sequence, for the current
- terminal. This might be followed by a prompt: <B>echo</B> <B>"${bold}Please</B>
- <B>type</B> <B>in</B> <B>your</B> <B>name:</B> <B>${offbold}\c"</B>
-
- <B>tput</B> <B>hc</B>
- Set exit code to indicate if the current terminal is a hard copy
- terminal.
-
- <B>tput</B> <B>cup</B> <B>23</B> <B>4</B>
- Send the sequence to move the cursor to row 23, column 4.
-
- <B>tput</B> <B>cup</B>
- Send the terminfo string for cursor-movement, with no parameters
- substituted.
-
- <B>tput</B> <B>longname</B>
- Print the long name from the <B>terminfo</B> database for the type of
- terminal specified in the environmental variable <B>TERM</B>.
-
- <B>tput</B> <B>-S</B> <B><<!</B>
- <B>></B> <B>clear</B>
- <B>></B> <B>cup</B> <B>10</B> <B>10</B>
- <B>></B> <B>bold</B>
- <B>></B> <B>!</B>
-
- This example shows <B>tput</B> processing several capabilities in one
- invocation. It clears the screen, moves the cursor to position
- 10, 10 and turns on bold (extra bright) mode. The list is
- terminated by an exclamation mark (<B>!</B>) on a line by itself.
-
-
-</PRE><H2><a name="h2-FILES">FILES</a></H2><PRE>
- <B>/usr/share/terminfo</B>
- compiled terminal description database
-
- <B>/usr/share/tabset/*</B>
- tab settings for some terminals, in a format appropriate to be
- output to the terminal (escape sequences that set margins and
- tabs); for more information, see the <I>Tabs</I> <I>and</I> <I>Initialization</I>,
- section of <B><A HREF="terminfo.5.html">terminfo(5)</A></B>
-
-
-</PRE><H2><a name="h2-EXIT-CODES">EXIT CODES</a></H2><PRE>
- If the <B>-S</B> option is used, <B>tput</B> 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 <B>0</B>. No
- indication of which line failed can be given so exit code <B>1</B> will never
- appear. Exit codes <B>2</B>, <B>3</B>, and <B>4</B> retain their usual interpretation. If
- the <B>-S</B> option is not used, the exit code depends on the type of
- <I>capname</I>:
+</PRE><H2><a name="h2-EXIT-STATUS">EXIT STATUS</a></H2><PRE>
+ If the <STRONG>-S</STRONG> option is used, <STRONG>tput</STRONG> checks for errors from each line, and if
+ any errors are found, will set the exit status to 4 plus the number of
+ lines with errors. If no errors are found, the exit status is <STRONG>0</STRONG>. No
+ indication of which line failed can be given so exit status <STRONG>1</STRONG> will
+ never appear. Exit statuses <STRONG>2</STRONG>, <STRONG>3</STRONG>, and <STRONG>4</STRONG> retain their usual
+ interpretation. If the <STRONG>-S</STRONG> option is not used, the exit status depends
+ on the type of <EM>cap-code</EM>: