powerline-shell icon indicating copy to clipboard operation
powerline-shell copied to clipboard

powerline-shell prints out ansi sequences instead of color

Open ducbadatchem opened this issue 2 years ago • 2 comments

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?

ducbadatchem avatar Dec 30 '21 11:12 ducbadatchem

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 avatar Jun 01 '22 10:06 jeanschmidt

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

jeanschmidt avatar Jun 01 '22 11:06 jeanschmidt