From a5b6295e8a1ddd422548dd48033faf6a69a7e4ce Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 25 Sep 2015 11:16:14 +0200 Subject: [PATCH] bash script to show all xterm-256 colors --- bin/colors.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/colors.sh diff --git a/bin/colors.sh b/bin/colors.sh new file mode 100755 index 0000000..c7b0421 --- /dev/null +++ b/bin/colors.sh @@ -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