Re: No colors on hardstatus

Amadeusz Sławiński <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Tue, 18 Oct 2016 18:23:56 -0200
Gabriel Sobrinho <[email protected]> wrote:

> Hi,
> 
> For some reason the HEAD version of screen compiled on macOS Sierra
> is not printing any color on hardstatus.
> 
> Any thoughts?
> 
> Using the screen version 4.00.03 (native on macOS) the hardstatus
> colors just work. _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users

Hi,

yes, master is development branch and has improved escape codes
allowing for 256 and truecolor in hardstatus (though truecolor escapes
seem broken at the moment, will need to look at it).

Colors are defined as pairs inside brackets separated by semicolon,
foreground first, background second. You can use '-' or empty field to
"reset" color to default. Truecolor defines are prefixed by x character.

For example
hardstatus alwayslastline "%{1;2} red on green %{-;-}"
hardstatus alwaysfirstline "%{199;77} magenta on light green %{-;-}"
hardstatus alwayslastline "%{xFF0000;x00FF00} red on green in truecolor %{-;-}"


However for stable use, you want to build using screen-v4 branch.

Hope this answers your questions.

BR,
Amadeusz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.