tput
View and modify terminal settings and capabilities. More information: <https://manned.org/tput>.
Install
- All systems
-
curl cmd.cat/tput.sh
- Debian
-
apt-get install libncurses5-dbg
- Ubuntu
-
apt-get install libncurses5-dbg
- Alpine
-
apk add ncurses
- Arch Linux
-
pacman -S ncurses
- Kali Linux
-
apt-get install ncurses-bin
- CentOS
-
yum install ncurses
- Fedora
-
dnf install ncurses
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libncurses5-dbg
- OS X
-
brew install ncurses
- Raspbian
-
apt-get install libncurses5-dbg
- Dockerfile
- dockerfile.run/tput
- Docker
-
docker run cmd.cat/tput tput
powered by Commando
View and modify terminal settings and capabilities. More information: <https://manned.org/tput>.
-
Move the cursor to a screen location:
tput cup row column
-
Set foreground (af) or background (ab) color:
tput setaf|setab ansi_color_code
-
Show number of columns, lines, or colors:
tput cols|lines|colors
-
Ring the terminal bell:
tput bel
-
Reset all terminal attributes:
tput sgr0
-
Enable or disable word wrap:
tput smam|rmam
© tl;dr; authors and contributors