tput
View and modify terminal settings and capabilities. tldr-pages
On several platforms
Several platforms
Move the cursor to a screen location
tput cup row columnIdentifySet foreground (af) or background (ab) color
tput setaf ansi_color_codeIdentifyReverse text and background colors
tput revIdentifyReset all terminal text attributes
tput sgr0IdentifyShow number of columns, lines, or colors
tput colsIdentifyEnable or disable word wrap
tput smamIdentifyHide or show the terminal cursor
tput civisIdentifySave or restore terminal text status (smcup also captures scroll wheel events)
tput smcupIdentify