summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-10-17 22:55:52 +0200
committerBoris Faure <billiob@gmail.com>2013-10-17 22:55:52 +0200
commit2156463deb5e1f4e2ae7e2d9c58f397144cde243 (patch)
treef716c43b538b73ad24317b559d559e019d39f6a9
parent457c32b72e35b93563c3fcdf6bd21613025e2a19 (diff)
add colors
-rwxr-xr-xtypres.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/typres.sh b/typres.sh
index b749bb4..02eb92b 100755
--- a/typres.sh
+++ b/typres.sh
@@ -14,6 +14,7 @@ r() {
14PWD=`pwd` 14PWD=`pwd`
15 15
16t() { 16t() {
17 echo -ne '\033[0;97m'
17 local str=$@ 18 local str=$@
18 local len=$COLUMNS 19 local len=$COLUMNS
19 local line="" 20 local line=""
@@ -36,6 +37,7 @@ t() {
36 WL=$(( $WL + 1 )) 37 WL=$(( $WL + 1 ))
37 echo "$l" 38 echo "$l"
38 done 39 done
40 echo -ne '\033[0m'
39} 41}
40 42
41function b { 43function b {
@@ -103,6 +105,7 @@ vc() {
103} 105}
104 106
105c() { 107c() {
108 echo -ne '\033[0;97m'
106 local str=$@ 109 local str=$@
107 local lines=() 110 local lines=()
108 local len=$COLUMNS 111 local len=$COLUMNS
@@ -132,6 +135,7 @@ c() {
132 for l in "${lines[@]}"; do 135 for l in "${lines[@]}"; do
133 vc $l 136 vc $l
134 done 137 done
138 echo -ne '\033[0m'
135} 139}
136 140
137f() { 141f() {
@@ -141,7 +145,9 @@ f() {
141 echo "" 145 echo ""
142 WL=$(( $WL + 1 )) 146 WL=$(( $WL + 1 ))
143 done 147 done
148 echo -ne '\033[104;90m'
144 echo $@ 149 echo $@
150 echo -ne '\033[0m'
145} 151}
146 152
147function s01 { 153function s01 {