nutshell
terminal
[!NOTE]
terminal info
list info
reset terminal
[!NOTE]
tput
tput
[!NOTE]
controlling
CAPNAME | DESCRIPTION |
---|---|
| Save the cursor position |
| Restore the cursor position |
| Move the cursor to upper left corner (0,0) |
| Move the cursor to position row, col |
| Move the cursor down 1 line |
| Move the cursor up 1 line |
| Set to cursor to be invisible |
| Set the cursor to its normal state |
CAPNAME | DESCRIPTION |
---|---|
| Start bold text |
| Start underlined text |
| End underlined text |
| Start reverse video |
| Start blinking text |
| Start invisible text |
| Start “standout” mode |
| End “standout” mode |
| Turn off all attributes |
| Set foreground color |
| Set background color |
VALUE | COLOR |
---|---|
| Black |
| Red |
| Green |
| Yellow |
| Blue |
| Magenta |
| Cyan |
| White |
| Not used |
| Reset to default color |
CAPNAME | DESCRIPTION |
---|---|
| Save screen contents |
| Restore screen contents |
| Clear from the cursor to the end of the line |
| Clear from the cursor to the beginning of the line |
| Clear from the cursor to the end of the screen |
| Clear the entire screen and home the cursor |
cursor action:
Name | Termcap Equiv. | Description |
---|---|---|
|
| Make cursor invisible |
|
| Make cursor very visible |
|
| Make cursor normal (undo |
|
| Move cursor right #1 spaces (P*) |
|
| Move cursor right one space |
|
| Move cursor left #1 spaces (P) |
|
| Move cursor left one space |
|
| Move cursor up #1 lines (P*) |
|
| Move cursor up one line |
|
| Move cursor down #1 lines (P*) |
|
| Move cursor down one line |
|
| Move cursor to row #1, column #2 of screen (P) |
|
| Move cursor to row #1, column #2 of memory (P) |
|
| Move cursor to row #1 (P) |
|
| Move cursor to column #1 (P) |
|
| Home cursor (if no `cup') |
|
| Move cursor down one-half line |
|
| Move cursor up one-half line |
|
| Save cursor position |
|
| Restore cursor to position of last `sc' |
|
| Turn off all attributes |
|
| Go to last line, first column (if no |
move sequence to top
show info
set cursor
shows tput processing in one invocation
print in center of line
print in center of terminal
tput_menu
: script for clean screen
stty
stty
[!NOTE|label:references:]
OPTION | COMMENTS |
---|---|
| Echoes every character typed. |
| Does not echo characters. |
| Echoes control characters as ^X (Ctrl-X), where X is the character given by adding 100 octal to the code of the control character. |
| Does not echo control characters as ^X (Ctrl-X). |
| Echoes the ERASE character as the "backspace space backspace" string. |
| Does not echo the ERASE character, just backspace. |
| Echoes a NL character after a KILL character. |
| Does not echo a NL character after a KILL character. |
| Echoes the KILL character by erasing each character on the output line. |
| Just echoes the KILL character. |
| Echoes the NL character. |
| Does not echo the NL character. |
| Echoes erased characters backwards with / (slash) and \ (backslash). |
| Does not echo erased characters backwards with / (slash) and \ (backslash). |
| Enables canonical input (canonical input allows input-line editing with the ERASE and KILL characters). See the discussion about canonical mode input in Line Discipline Module (ldterm) AIX Version 4.3 Communications Programming Concepts. |
| Disables canonical input. |
| Specifies that implementation-defined functions shall be recognized from the input data. Recognition of the following control characters requires iexten to be set: eol2, dsusp, reprint, discard, werase, lnext. The functions associated with these modes also require iexten to be set: imaxbel, echoke, echoprt, and echoctl. |
| Specifies that implementation-defined functions shall not be recognized from the input data. |
| Enables the checking of characters against the special control characters INTR, SUSP and QUIT special control characters. |
| Disables the checking of characters against the special control characters INTR, SUSP and QUIT special control characters. |
| Does not clear buffers after INTR, SUSP, or QUIT control characters. |
| Clears buffers after INTR, SUSP, or QUIT control characters. |
| Causes any input that is pending after a switch from raw to canonical mode to be re-input the next time a read operation becomes pending or the next time input arrives. Pending is an internal state bit. |
| No text is pending. |
| Signals SIGTOU for background output. |
| Does not signal SIGTOU for background output. |
| Echoes uppercase characters on input, and displays uppercase characters on output with a preceding \ (backslash). |
| Does not echo uppercase characters on input. |
show all
show size
enable/disable echo
tty
( teletypewriter )
tty
( teletypewriter )[!NOTE|label:references:]
tabs
tabs
[!NOTE|label:references]
Last updated