screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jostein Berntsen
Subject: Re: Possible to put some kind of if then test in screenrc?
Date: Thu, 16 Nov 2017 20:17:00 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

On 14.11.17,17:59, David Woodfall wrote:
> 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 <address@hidden> 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.
> > > 

The last post in this thread might give some suggestion to resolve this 
with a script:

https://unix.stackexchange.com/questions/16429/how-can-you-change-the-gnu-screen-status-line-based-on-hostname

Jostein





reply via email to

[Prev in Thread] Current Thread [Next in Thread]