summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-13 03:06:31 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-13 03:06:31 +0200
commitac532dcd43abc45f67fcbf5227a55806b3c0909b (patch)
tree638b1e15863a424676059d824e75badeb77d56bc
parent03a9bb847317d91bb120d6dbdb434d2e95ec2131 (diff)
downloaddigitale-debutanten-ac532dcd43abc45f67fcbf5227a55806b3c0909b.tar.gz
colorize chuck's stderr output (red)
-rwxr-xr-xstart_chuck10
1 files changed, 9 insertions, 1 deletions
diff --git a/start_chuck b/start_chuck
index e87fb5c..249aa46 100755
--- a/start_chuck
+++ b/start_chuck
@@ -2,6 +2,13 @@
set -e
+colorize()
+{
+ while read line; do
+ echo -e "\e[01;31m$line\e[0m"
+ done
+}
+
test -n "$CHUCK" || CHUCK=chuck
# kill possibly running stuff
@@ -23,4 +30,5 @@ jack.scope -n 3 -w 512 -b 96512 >/dev/null &
$CHUCK $* \
--srate:44100 --in:3 --out:7 \
--chugin-path:chugins \
- --loop lib.ck
+ --loop lib.ck \
+ 2> >(colorize)