justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

Force a line break #299

Closed Hayao0819 closed 3 years ago

Hayao0819 commented 3 years ago

Describe the bug For example, if the standard output does not have line breaks, as in the code below, PowerLine-Go will delete and overwrite this output.

bash -c "printf Hello"

PowerLine written in Python forces a line break with the% symbol.

Environment (please complete the following information):

dswij commented 3 years ago

PowerLine written in Python forces a line break with the% symbol.

It is doing as you described when I tried

image

Maybe I misunderstood. If so, can you give an example output and the expected one?

Hayao0819 commented 3 years ago

Upon closer examination, this seems to be my zshrc issue, not the PowerLine-Go issue. I was able to solve it by editing my zshrc.