Mercurial > ec-dotfiles
comparison bin/termcolors.sh @ 239:73e90355bbd7
Link to reference.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 03 Nov 2011 11:08:18 +0700 |
parents | c3ca45204c4e |
children |
comparison
equal
deleted
inserted
replaced
237:0d008b554aac | 239:73e90355bbd7 |
---|---|
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 |