commands.sh

tput

all

View and modify terminal settings and capabilities. See also: `stty`.

More info →

Examples (8)

Move the cursor to a screen location

tput cup row column

Set foreground (af) or background (ab) color

tput setaf|setab ansi_color_code

Reverse text and background colors

Reset all terminal text attributes

tput sgr0

Show number of columns, lines, or colors

tput cols|lines|colors

Enable or disable word wrap

tput smam|rmam

Hide or show the terminal cursor

tput civis|cnorm

Save or restore terminal text status (smcup also captures scroll wheel events)

tput smcup|rmcup
made by @shridhargupta | data from tldr-pages