irongit

a bin full of cool programs

hygobin/bin/colors
6 lines221 B
1#!/bin/bash
2for i in {0..255}; do printf "\e[38;5;${i}m%4d " $i; ((i%16==15)) && echo ""; done; echo -e "\e[0m"
3
4echo -e -n "\e[38;5;243m"
5echo "Use these colors with \\e[38;5;<number>m<message>\\e[0m"
6echo -e -n "\e[0m"