screen-users
[Top][All Lists]
Advanced

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

Re: scripting hardstatus with backtick


From: TJ Harrell
Subject: Re: scripting hardstatus with backtick
Date: Fri, 6 Aug 2004 01:58:55 -0400

> 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.

This does allow a script to output expanded variables on the hardline.

Is there any way to get screen to interpret the ^Ew on the backtick line and
send that info as args to the script? For example:

backtick 1 1 1 /home/system/stat ^Ew






reply via email to

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