Skip to main content

Thread: can't get colors to work in terminal


hello,
used work colors in terminal defining environment variables values equal ansi escape sequences, e.g.,

csi=$'\x1b'[
redf="$csi"31m
blackf="$csi"30m

, if wrote

echo $redf bla bla $blackf

"bla bla" show in red. reason not work in ubuntu 9.10. perhaps settings wrong. can give me advice?
regards,
bostjanv

sorry, mistake. actually, made several mistakes, main 1 of not use echo -e. distributions have echo -e default (-e not necessary).
regards,
bostjanv


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] can't get colors to work in terminal


Ubuntu

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???