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

powerline-shell prints out ansi sequences instead of color #528

Open
ducbadatcs opened this issue Dec 30, 2021 · 2 comments
Open

powerline-shell prints out ansi sequences instead of color #528

ducbadatcs opened this issue Dec 30, 2021 · 2 comments

Comments

@ducbadatcs
Copy link

So I installed powerline-shell via the git way, everything seems to be working normally when I hit powerline-shell and it prints out this junk:

powerline-shell --shell bash
\[\e[38;5;250m\]\[\e[48;5;240m\] \u \[\e[48;5;238m\]\[\e[38;5;240m\]\[\e[38;5;250m\]\[\e[48;5;238m\] \h \[\e[48;5;31m\]\[\e[38;5;238m\]\[\e[38;5;15m\]\[\e[48;5;31m\] ~ \[\e[48;5;236m\]\[\e[38;5;31m\]\[\e[38;5;15m\]\[\e[48;5;236m\] \$ \[\e[0m\]\[\e[38;5;236m\]\[\e[0m\] <imyusername>

Powerline works normally on my terminal(s). How can I fix this?

@jeanschmidt
Copy link

Hi, having the same issues, a few notes:

Using Mac menterey 12.4
Adding in the main function in the __init__ file the line:

sys.stdout.write('\033[93mWarning test\033[0m')

Makes the output be respected as yellow as it should be. So seems a issue with how the strings are build or printed, but could not get to the issue.

Appreciate any tips

@jeanschmidt
Copy link

Oh, when you spend too much time in a obvious thing 😳

The --shell bare was not present, crap.

But be sure to use correct --shell for the call

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

2 participants