#!/bin/sh
#< An "echo" beautifier - supports colours and boldface
open_escape="^[[0m"
close_escape="^[[0m"
case $1 in
red) open_escape="^[[31m"
shift ;;
green) open_escape="^[[32m"
shift ;;
blue) open_escape="^[[33m"
shift ;;
purple) open_escape="^[[34m"
shift ;;
cyan) open_escape="^[[35m"
shift ;;
grey) open_escape="^[[36m"
shift ;;
white) open_escape="^[[1;37m"
shift ;;
bold) open_escape="^[[1m"
shift ;;
*) shift ;;
esac
echo "${open_escape}$*${close_escape}"
exit 0