diff options
author | Thomas Lange <code@nerdmind.de> | 2017-01-03 23:32:08 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-01-03 23:32:08 +0100 |
commit | 5da57e4b6f0b37263ebb857939caad88cb325b48 (patch) | |
tree | 04fea3aebff9a49cde2661eef0ba2803b3a8e48d /Bash | |
parent | ec78b22ae10782bc146f30fab2e0df09f2ce15c3 (diff) | |
download | snippets-5da57e4b6f0b37263ebb857939caad88cb325b48.tar.gz snippets-5da57e4b6f0b37263ebb857939caad88cb325b48.tar.xz snippets-5da57e4b6f0b37263ebb857939caad88cb325b48.zip |
Code reformatted.
Diffstat (limited to 'Bash')
-rwxr-xr-x | Bash/ansi-color-output.sh | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Bash/ansi-color-output.sh b/Bash/ansi-color-output.sh index b1ea5f0..68f9533 100755 --- a/Bash/ansi-color-output.sh +++ b/Bash/ansi-color-output.sh @@ -27,14 +27,22 @@ function color() { case $1 in - 030)(printf '\033[0;30m%s\033[0m' "$2");;130)(printf '\033[1;30m%s\033[0m' "$2");; - 031)(printf '\033[0;31m%s\033[0m' "$2");;131)(printf '\033[1;31m%s\033[0m' "$2");; - 032)(printf '\033[0;32m%s\033[0m' "$2");;132)(printf '\033[1;32m%s\033[0m' "$2");; - 033)(printf '\033[0;33m%s\033[0m' "$2");;133)(printf '\033[1;33m%s\033[0m' "$2");; - 034)(printf '\033[0;34m%s\033[0m' "$2");;134)(printf '\033[1;34m%s\033[0m' "$2");; - 035)(printf '\033[0;35m%s\033[0m' "$2");;135)(printf '\033[1;35m%s\033[0m' "$2");; - 036)(printf '\033[0;36m%s\033[0m' "$2");;136)(printf '\033[1;36m%s\033[0m' "$2");; - 037)(printf '\033[0;37m%s\033[0m' "$2");;137)(printf '\033[1;37m%s\033[0m' "$2");; + 030) printf '\033[0;30m%s\033[0m' "$2") ;; + 031) printf '\033[0;31m%s\033[0m' "$2") ;; + 032) printf '\033[0;32m%s\033[0m' "$2") ;; + 033) printf '\033[0;33m%s\033[0m' "$2") ;; + 034) printf '\033[0;34m%s\033[0m' "$2") ;; + 035) printf '\033[0;35m%s\033[0m' "$2") ;; + 036) printf '\033[0;36m%s\033[0m' "$2") ;; + 037) printf '\033[0;37m%s\033[0m' "$2") ;; + 130) printf '\033[1;30m%s\033[0m' "$2") ;; + 131) printf '\033[1;31m%s\033[0m' "$2") ;; + 132) printf '\033[1;32m%s\033[0m' "$2") ;; + 133) printf '\033[1;33m%s\033[0m' "$2") ;; + 134) printf '\033[1;34m%s\033[0m' "$2") ;; + 135) printf '\033[1;35m%s\033[0m' "$2") ;; + 136) printf '\033[1;36m%s\033[0m' "$2") ;; + 137) printf '\033[1;37m%s\033[0m' "$2") ;; esac } |