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

Neal Fultz <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAL9B2vdXuFy79nExKLax9=C1R5P4xW+kiBiUb7vgE34H-0zNOA@mail.gmail.com>
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 <[email protected]> wrote:

> 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 than
> as colour codes.
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
>

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.