screen-users
[Top][All Lists]
Advanced

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

Re: hardstatus backtick


From: Glen Smith
Subject: Re: hardstatus backtick
Date: Fri, 30 Jul 2004 19:45:30 -0500
User-agent: Mutt/1.5.6i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mikael

On Sat, 31 Jul 2004, Mikael Sch?nenberg wrote:

> On Fri, Jul 30, 2004 at 04:26:31PM -0500, Glen Smith wrote:
> 
> > Anybody got a clue as to what is wrong with my syntax on
> > using the backtick on my hardstatus line? :
> > 
> > hardstatus alwayslastline "%{+d wB}%D%C %s %a %`uname -sr` %{-d 
> > bw}%-w%{wB}%50>%n %t%{bw}%+w%<"
> > 
> > It only prints the command literally
> 
> >From the docs on the backtick string escape:
>  `      Substitute with the output of a 'backtick' command.  The length
>         qualifier is misused to identify one of the commands.
> 
> Try putting the following two lines in your .screenrc:
> backtick 42 0 0 uname -sr
> hardstatus alwayslastline "%42`"
> 
> The first line creates a backtick command running 'uname -sr', and
> giving it the numerical id 42.
> 
> The second line uses the string escape sequence for the backtick
> command, "misusing the length qualifier" to indicate which backtick id
> to use.
> 
> When you've got it working, reinstate all the other stuff in your
> hardstatus line. Hope this helps :)
> 
> -- 
> Mikael Sch?nenberg <address@hidden>
> 
> 
> _______________________________________________
> screen-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/screen-users

Thanks alot!! Worked like a charm. I had read the man, since thats what 
got me started w/ the backtick, but I guess the meaning alluded me.

- -- 
Glen Smith                                             _
GnuPG: A9FD7D31                 ASCII ribbon campaign ( )
ICQ: 324133576                   - against HTML email  X
http://wi1d.gsdesign.biz:81                  & vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBCuuq0820Han9fTERAle7AKCU+Ap0N9JxxNo3n0ey/ny94quKUACfUF4E
u0EOgUHwehRfFjOEftRya8M=
=V77D
-----END PGP SIGNATURE-----




reply via email to

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