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

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



   reset    ( 1 )

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

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

Примеры (Examples)

@TPUT@ init
            Initialize the terminal according to the type of terminal in
            the environmental variable TERM.  This command should be
            included in everyone's .profile after the environmental
            variable TERM has been exported, as illustrated on the
            profile(5) manual page.

@TPUT@ -T5620 reset Reset an AT&T 5620 terminal, overriding the type of terminal in the environmental variable TERM.

@TPUT@ cup 0 0 Send the sequence to move the cursor to row 0, column 0 (the upper left corner of the screen, usually known as the 'home' cursor position).

@TPUT@ clear Echo the clear-screen sequence for the current terminal.

@TPUT@ cols Print the number of columns for the current terminal.

@TPUT@ -T450 cols Print the number of columns for the 450 terminal.

bold=`@TPUT@ smso` offbold=`@TPUT@ rmso` Set the shell variables bold, to begin stand-out mode sequence, and offbold, to end standout mode sequence, for the current terminal. This might be followed by a prompt: echo "${bold}Please type in your name: ${offbold}\c"

@TPUT@ hc Set exit code to indicate if the current terminal is a hard copy terminal.

@TPUT@ cup 23 4 Send the sequence to move the cursor to row 23, column 4.

@TPUT@ cup Send the terminfo string for cursor-movement, with no parameters substituted.

@TPUT@ longname Print the long name from the terminfo database for the type of terminal specified in the environmental variable TERM.

@TPUT@ -S <<! > clear > cup 10 10 > bold > !

This example shows @TPUT@ 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 (!) on a line by itself.