So Byobu actually includes a "helper function" called "color
". You can use this in your $HOME/.byobu/statusrc, and it will get resolved.
Example:
LOGO=" $(color g w)Foo$(color -) "
This will print a logo of " Foo ", which is white text on a green background. The first argument to the color
function is the background, the second is the foreground text.
You can use 8 colors, or 256 colors. To use 256 colors, do the following:
LOGO="$(color colour200 colour255)foo$(color -)"
And you can see a bunch of examples in /usr/lib/byobu/logo.
Full disclosure: I'm the author and maintainer of Byobu.