comparison bin/termcolors.sh @ 240:a6fd1f0784f5

Merge.
author Edho Arief <edho@myconan.net>
date Sun, 02 Oct 2011 07:24:37 +0700
parents 73e90355bbd7
children
comparison
equal deleted inserted replaced
238:5dcbf6ab0109 240:a6fd1f0784f5
14 # To print text with only one word colored: 14 # To print text with only one word colored:
15 # echo "Hello, $(c green world)." 15 # echo "Hello, $(c green world)."
16 # 16 #
17 # To do: 17 # To do:
18 # Support for background color, underline, etc. 18 # Support for background color, underline, etc.
19 #
20 # Reference:
21 # Colours, http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
19 # 22 #
20 23
21 _c() { 24 _c() {
22 color_name="${1}" 25 color_name="${1}"
23 shift 26 shift