aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-02-13 01:17:12 +0100
committerDuncaen <mail@duncano.de>2017-02-13 01:18:13 +0100
commit592ce537ede258d33315dcf0ea3879bf3a3e0ff1 (patch)
tree39b379503371604f208c5cf5bf2bc30428dfb59e
parent0a2160b031229dabae3e278f6b13fff3e977b22f (diff)
downloaddotfiles-592ce537ede258d33315dcf0ea3879bf3a3e0ff1.tar.gz
bin/colors: make it work with dash
-rwxr-xr-xbin/colors3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/colors b/bin/colors
index a1811ae..e285d3a 100755
--- a/bin/colors
+++ b/bin/colors
@@ -1,9 +1,10 @@
#!/bin/sh
+# colors - terminal color and attribute escape sequences
for x in 0 1 4 5 7 8; do
for i in $(seq 30 37); do
for a in $(seq 40 47); do
- printf "\e[%d;%d;%dm\\\e[%d;%d;%dm\e[0;37;40m " "$x" "$i" "$a" "$x" "$i" "$a"
+ printf "\033[%d;%d;%dm\\\e[%d;%d;%dm\033[0;37;40m " "$x" "$i" "$a" "$x" "$i" "$a"
done
printf "\n"
done