screen-users
[Top][All Lists]
Advanced

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

Re: backtick with colors


From: Micah Cowan
Subject: Re: backtick with colors
Date: Mon, 13 Apr 2009 00:46:22 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

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

JuanPablo wrote:
> hi,
>   I try make a backtick with automatic change of colors
> example
> #!/bin/bash
> #file name sbacktick
> cadena="Bright red on white"
> echo -e "\033[47m\033[1;31m $cadena \033[0m"
> 
> in screenrc
> backtick 1 60 60 $HOME/bin/sbacktick
> 
> but no working ... the message is show with normal colors.
> any idea ?
> many thanks.

Actually, you can send the same string escapes in a backtick command, as
you can in the caption/hardstatus, except that instead of sending a %,
you must send \005. So:

  echo -e "\005{= wR} $cadena \005{-}"

May be what you need.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkni7c0ACgkQ7M8hyUobTrEScgCeJzLOzdzDv2DT6C5D6bxBRs+p
b+QAn3NvZe6DRwVm74bMjjJ35HSs9jyM
=Ntl3
-----END PGP SIGNATURE-----




reply via email to

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