powerline-shell prints out ansi sequences instead of color
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?
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
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