Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support background color using ANSI? #893

Open
provCristianMaluenda opened this issue Jul 7, 2023 · 0 comments
Open

Does it support background color using ANSI? #893

provCristianMaluenda opened this issue Jul 7, 2023 · 0 comments

Comments

@provCristianMaluenda
Copy link

provCristianMaluenda commented Jul 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant