nutshell

terminal

[!NOTE]

terminal info

  • list info

reset terminal

[!NOTE]

tput

[!NOTE]

CAPNAME
DESCRIPTION

sc

Save the cursor position

rc

Restore the cursor position

home

Move the cursor to upper left corner (0,0)

cup <row> <col>

Move the cursor to position row, col

cud1

Move the cursor down 1 line

cuu1

Move the cursor up 1 line

civis

Set to cursor to be invisible

cnorm

Set the cursor to its normal state

CAPNAME
DESCRIPTION

bold

Start bold text

smul

Start underlined text

rmul

End underlined text

rev

Start reverse video

blink

Start blinking text

invis

Start invisible text

smso

Start “standout” mode

rmso

End “standout” mode

sgr0

Turn off all attributes

setaf <value>

Set foreground color

setab <value>

Set background color

VALUE
COLOR

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Not used

9

Reset to default color

CAPNAME
DESCRIPTION

smcup

Save screen contents

rmcup

Restore screen contents

el

Clear from the cursor to the end of the line

el1

Clear from the cursor to the beginning of the line

ed

Clear from the cursor to the end of the screen

clear

Clear the entire screen and home the cursor

  • cursor action:

Name
Termcap Equiv.
Description

civis

vi

Make cursor invisible

cvvis

vs

Make cursor very visible

cnorm

ve

Make cursor normal (undo cvvis' & civis)'

cuf

RI

Move cursor right #1 spaces (P*)

cuf1

nd

Move cursor right one space

cub

LE

Move cursor left #1 spaces (P)

cub1

le

Move cursor left one space

cuu

UP

Move cursor up #1 lines (P*)

cuu1

up

Move cursor up one line

cud

DO

Move cursor down #1 lines (P*)

cud1

do

Move cursor down one line

cup

cm

Move cursor to row #1, column #2 of screen (P)

mrcup

CM

Move cursor to row #1, column #2 of memory (P)

vpa

cv

Move cursor to row #1 (P)

hpa

ch

Move cursor to column #1 (P)

home

ho

Home cursor (if no `cup')

hd

hd

Move cursor down one-half line

hu

hu

Move cursor up one-half line

sc

sc

Save cursor position

rc

rc

Restore cursor to position of last `sc'

sgr0

me

Turn off all attributes

ll

ll

Go to last line, first column (if no cup)

stty

[!NOTE|label:references:]

OPTION
COMMENTS

echo

Echoes every character typed.

-echo

Does not echo characters.

echoctl

Echoes control characters as ^X (Ctrl-X), where X is the character given by adding 100 octal to the code of the control character.

-echoctl

Does not echo control characters as ^X (Ctrl-X).

echoe

Echoes the ERASE character as the "backspace space backspace" string.

-echoe

Does not echo the ERASE character, just backspace.

echok

Echoes a NL character after a KILL character.

-echok

Does not echo a NL character after a KILL character.

echoke

Echoes the KILL character by erasing each character on the output line.

-echoke

Just echoes the KILL character.

echonl

Echoes the NL character.

-echonl

Does not echo the NL character.

echoprt

Echoes erased characters backwards with / (slash) and \ (backslash).

-echoprt

Does not echo erased characters backwards with / (slash) and \ (backslash).

icanon

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.

-icanon

Disables canonical input.

iexten

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.

-iexten

Specifies that implementation-defined functions shall not be recognized from the input data.

isig

Enables the checking of characters against the special control characters INTR, SUSP and QUIT special control characters.

-isig

Disables the checking of characters against the special control characters INTR, SUSP and QUIT special control characters.

noflsh

Does not clear buffers after INTR, SUSP, or QUIT control characters.

-noflsh

Clears buffers after INTR, SUSP, or QUIT control characters.

pending

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.

-pending

No text is pending.

tostop

Signals SIGTOU for background output.

-tostop

Does not signal SIGTOU for background output.

xcase

Echoes uppercase characters on input, and displays uppercase characters on output with a preceding \ (backslash).

-xcase

Does not echo uppercase characters on input.

  • show all

  • show size

  • enable/disable echo

tty ( teletypewriter )

[!NOTE|label:references:]

tabs

[!NOTE|label:references]

Last updated

Was this helpful?