Re: Possible to put some kind of if then test in screenrc?

2017-11-14 Thread David Woodfall
Thanks, I'll give that a shot. This should be possible if you write a backtick that prints only if CPU > 90; then you could combine that with %? : %?%1`%{.R.}%?% to conditionally change the color On Tue, Nov 14, 2017 at 4:41 AM, David Woodfall wrote: I have a hardstatus backtick command th

Re: Possible to put some kind of if then test in screenrc?

2017-11-14 Thread Neal Fultz
This should be possible if you write a backtick that prints only if CPU > 90; then you could combine that with %? : %?%1`%{.R.}%?% to conditionally change the color On Tue, Nov 14, 2017 at 4:41 AM, David Woodfall wrote: > I have a hardstatus backtick command that prints CPU %. I would like > t

Possible to put some kind of if then test in screenrc?

2017-11-14 Thread David Woodfall
I have a hardstatus backtick command that prints CPU %. I would like to change the hardtstatus text colour to bright red if it goes over 90%. Is this possible? I tried first using bash colour escape codes, and then normal screen colour codes like %{b .r.}, but it prints the codes verbatim rather