matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)

Home Page:https://xbarapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it support background color using ANSI?

provCristianMaluenda opened this issue · comments

Hi,
I am trying to set the background color using ANSI. The console looks fine, but xbar changes the color to the text and not the background.
I am using Python3 and the code is like:

HEALTHY='\x1b[42m'
UNHEALTHY='\x1b[41m'
NC='\x1b[0m'

print(f'{HEALTHY}dev{NC}')

Console:
image
xbar shows the text blue instead of the background:
image

I saw the example #703 but I can not find an example of a text with a colored background.

Thanks