tput
View and modify terminal settings and capabilities.
- Move the cursor to a screen location:
tput cup {y_coordinate} {x_coordinate}
- Set foreground (af) or background (ab) color:
tput {setaf|setab} {ansi_color_code}
- Show number of columns, lines, or colors:
tput {cols|lines|colors}
tput bel
- Reset all terminal attributes:
tput sgr0
- Enable / Disable word wrap:
tput {smam|rmam}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).