Possible Duplicate:
Colors with unix command “watch”?
In one of my programs, I want to use colored text as output, so I am using ANSI escape sequences for that, e.g. like this:
echo -e '\033[34mHello World\033[0m'
It prints "Hello World" in blue color. (actually it is a Python program using "print", but that does not matter for the question)
Now I want to repeat execution of the program using the bash program "watch". But when I execute the very same line as above using "watch", i.e.
watch echo -e '\033[34mHello World\033[0m'
the text is not blue, and the output becomes "-e 033[34mHello World033[0m". So the ANSI escape sequences are not decoded somehow.
Is there a way to make the program "watch" respect the escape sequences, or is there an alternative to "watch" to obtain the same effect?
It is ok if it only works on Linux as I am only using that.
Update: So one solution would be to install a newer version of "watch" that knows the --color option. But is there any other way, maybe a similar program to "watch"? (I am not the admin of that machine.)