screen-users
[Top][All Lists]
Advanced

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

Re: scripting hardstatus with backtick


From: Michael Schroeder
Subject: Re: scripting hardstatus with backtick
Date: Wed, 4 Aug 2004 11:50:25 +0200
User-agent: Mutt/1.4.2.1i

On Tue, Aug 03, 2004 at 04:01:31PM -0400, TJ Harrell wrote:
> I'd like to have a hardstatus similar to this:
> 
> hardstatus alwayslastline "%{Bw}%l%= "
> 
> I would like to modify this somewhat, so that the color is changed when the
> current load exceeds 1.5.
> I could easily output a string like:
> 
> "%{Bw}0.19, 0.11, 0.07%= "
> 
> from a perl script, but screen will not interpret the string escapes
> contained in the output of a script when used from backtick.

It works if you use control-%, i.e. ^E.

Cheers,
  Michael.

-- 
Michael Schroeder           address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}




reply via email to

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