watch -c is stripping colors and animation
by fakie_flip from LinuxQuestions.org on (#53RGF)
I am running this from screen in my .screenrc
watch -c -n 60 curl -s wttr.in
~/.screenrc
Code:term screen-256color # Lots of colors
#truecolor on # 24-bit of colors; Works in version 5 git
defbce on # Background color erase
defshell -bash # The dash makes it a login shell
defscrollback 2024 # Lots of scroll-back
bind ' ' windowlist -b # Space displays the list of windows
bind '^b' '^a^a' # Bind ^b for nested screens that would do ^a^a
#termcapinfo xterm* ti@:te@ # Scroll using scrollbar of Konsole or xterm instead
defmousetrack on # Watch for mouse clicks when there are splits
#windowlist string "%4n %h%=%f" # Name fix in windowlist that only shows "bash"
altscreen # Clear the screen after running bashtop or vim
shelltitle "$ |bash"
#reptyr pid # Attach a process in screen that was started outside of screen
# No more issues launching GUI apps within screen
setenv DISPLAY ':0'
log on
logfile ~/.screen.log
hardstatus off
#hardstatus alwayslastline
hardstatus firstline # Statusbar at top
hardstatus string '%{= bW}%-Lw%{= rW}%50>%n%f* %t%{= bW}%+Lw%< %{= bd}%-=%D %d %M %Y %c:%s%{-}'
caption always "%{= rW} [ %S ] %f %t %? ( %{rY} %u %{rW} ) %?"
# HTML Color Codes : https://www.computerhope.com/htmcolor.htm
# String Escapes : https://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
# Understanding GNU Screen's hardstatus Strings :
# https://www.kilobitspersecond.com/2014/02/10/understanding-gnu-screens-hardstatus-strings/
## Default screens
screen -t root 0
stuff "su -\n"
screen -t weather 1
stuff "watch -c -n 60 curl -s wttr.in\n"
screen -t music 2 mocp
screen 3All the colors are stripped except a background color on one line. The animated lighting bolts are also no longer animated.


watch -c -n 60 curl -s wttr.in
~/.screenrc
Code:term screen-256color # Lots of colors
#truecolor on # 24-bit of colors; Works in version 5 git
defbce on # Background color erase
defshell -bash # The dash makes it a login shell
defscrollback 2024 # Lots of scroll-back
bind ' ' windowlist -b # Space displays the list of windows
bind '^b' '^a^a' # Bind ^b for nested screens that would do ^a^a
#termcapinfo xterm* ti@:te@ # Scroll using scrollbar of Konsole or xterm instead
defmousetrack on # Watch for mouse clicks when there are splits
#windowlist string "%4n %h%=%f" # Name fix in windowlist that only shows "bash"
altscreen # Clear the screen after running bashtop or vim
shelltitle "$ |bash"
#reptyr pid # Attach a process in screen that was started outside of screen
# No more issues launching GUI apps within screen
setenv DISPLAY ':0'
log on
logfile ~/.screen.log
hardstatus off
#hardstatus alwayslastline
hardstatus firstline # Statusbar at top
hardstatus string '%{= bW}%-Lw%{= rW}%50>%n%f* %t%{= bW}%+Lw%< %{= bd}%-=%D %d %M %Y %c:%s%{-}'
caption always "%{= rW} [ %S ] %f %t %? ( %{rY} %u %{rW} ) %?"
# HTML Color Codes : https://www.computerhope.com/htmcolor.htm
# String Escapes : https://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
# Understanding GNU Screen's hardstatus Strings :
# https://www.kilobitspersecond.com/2014/02/10/understanding-gnu-screens-hardstatus-strings/
## Default screens
screen -t root 0
stuff "su -\n"
screen -t weather 1
stuff "watch -c -n 60 curl -s wttr.in\n"
screen -t music 2 mocp
screen 3All the colors are stripped except a background color on one line. The animated lighting bolts are also no longer animated.