#!/bin/bash
#
# Colorize stream editor(256 colori by Rickz <iamrickz@gmail.com>
#
#                                                21:26, 2011/08/29.
#


if [ "$1" == "" ] ; then
   echo -e "Usage: $0 <Foreground color>
Color code:"
   for color in `seq 256`;do 
	echo $color|sed "s/\(.*\)/\x1b\x5b\x33\x38\x3b\x30\x35\x3b$color\x6d\1\x1b\x5b\x30\x6d/g"
   done|column -c 70
   exit
fi

sed "s/\(.*\)/\x1b\x5b\x33\x38\x3b\x30\x35\x3b$1\x6d\1\x1b\x5b\x30\x6d/g"

