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


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to