bash script to show all xterm-256 colors

This commit is contained in:
Matthias Kretschmann 2015-09-25 11:16:14 +02:00
parent 4867506c9b
commit a5b6295e8a
1 changed files with 14 additions and 0 deletions

14
bin/colors.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# tputcolors
echo
echo -e "$(tput bold) reg bld und tput-command-colors$(tput sgr0)"
for i in $(seq 1 256); do
echo " $(tput setaf $i)Text$(tput sgr0) $(tput bold)$(tput setaf $i)Text$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)Text$(tput sgr0) \$(tput setaf $i)"
done
echo ' Bold $(tput bold)'
echo ' Underline $(tput sgr 0 1)'
echo ' Reset $(tput sgr0)'
echo