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

Text does not wrap correctly and may overwrite Powerline in WSL inside Windows Terminal #2204

Open
tomaz-suller opened this issue May 15, 2022 · 3 comments

Comments

@tomaz-suller
Copy link

I've just installed Powerline on an ArchWSL instance which I was trying to set up to use the new Windows Terminal app. I experienced a few problems with text going to places it shouldn't which I don't experience on my Linux system, so I think the problem lies with how Windows Terminal communicates line widths or something like that. Notably though, the tmux status line is displayed normally, which is why I'm filing this issue here.

The first issue has to dowith any text that is "too long": the Powerline simply disappears, and so does the initial portion of the text the user wrote. This first screenshot is just before the problem happens:
image
and this one, just after
image
I just kept typing more "aaaa" and the previous ones disappeared, along with the line.

The second issue had to do with the right side of Powerline; every time a process exits with an error code or I cd into a repository, the cursor teleports into the line and subsequent commands overwrite it:
image
image

I'm not using any custom Powerline configuration, but may provide any config you may find relevant.

@tomaz-suller
Copy link
Author

I have tested some other zsh themes and all of them had the issue with disappearing text for commands that were too long, so this might actually be an issue with Windows Terminal or with how it integrates with WSL

@h4nsv4d3r
Copy link

h4nsv4d3r commented Nov 27, 2022

I'm experiencing the same thing currently on Ubuntu 22.10, powerline version: 2.8.3.
If the entered text gets to long, the cursor resets to the beginning of the line and overwrites the powerline prompt.
This always happens when the input length exceeds 68 characters. It occurs in xterm and terminator (bash).
image

@buckwheatlovesmistral
Copy link

I've been experiencing a similar bug with Powerline on both OpenBSD 7.3 and NetBSD 9.3 whenever I get an error from running a shell command. I'm not using any custom configs either beyond recolouring the prompt, and I'm using Zsh with Suckless st on both.

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

No branches or pull requests

4 participants