Do not use watch ... When you use viewers, you may find that they do not write to the terminal and then erase the color. You must use certain program flags to store control codes there.
If you don't know the flags or not, you can make the poor person look:
while sleep <time>; do clear; <command>; done
It will have a little flicker (the clock works "double buffered"), but for some things it is quite useful.
You may be tempted to make a double buffered poor person using
while sleep <time>; do <command> > /tmp/file; clear; cat /tmp/file; done
But then you again press the function "I do not write to the terminal."
theist Nov 28 '16 at 16:50 2016-11-28 16:50
source share