-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Resizing unix shells with Windows Terminal doesn't clear the previous prompt, spamming up the shell and eventually crashing windows terminal. #402
Comments
@AskAlice I understand the issue, but how is that the responsibility of the prompt generator? Oh my Posh hooks into the shell's prompt function (depends on the platform). Clearing also implies clearing the screen which is maybe not what the user wants (clearing a line is weird as you don't even know where the cursor is at that point in time). Maybe I'm not aware of something but I don't see how we can do this without opening another jar of impossible to resolve issues. |
That's right. The terminal isn't supposed to crash because of a prompt. Looking at the issue linked, This seems to be an issue with the headless Console Host that powers the Windows Terminal |
I went to make this issue because of the spamming of the prompt, and found it also happened to crash the terminal when done for long enough |
If i use p10k with .oh-my-zsh it doesn't spam like this, so it's somehow possible within this repo to fix that, not quite sure where to start, though. They have this special prompt that doesn't show previous prompts after you hit enter, just an arrow then what you wrote in the prompt, then the output, and eventually the current (and only visible) prompt. |
@AskAlice I also use zsh and the prompt is't being spammed in resize. Somehow it feels like Windows Terminal is doing some voodoo magic underneath. p10k leverages zsh directly, something we can't do (other than the init script). There is also more information to be found in other repos that talks directly about similar behaviour caused by |
Alright feel free to close if that's the case |
@AskAlice a solution would be to disable wrap on resize in the terminal, however, the Windows Terminal team decided against adding the functionality (lord knows why). |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Prerequisites
CONTRIBUTING
guideDescription
Resizing unix shells via WSL or Windows OpenSSH doesn't clear the previous prompt, spamming up the shell and eventually crashing windows terminal.
HQ version: https://giant.gfycat.com/MiniatureThinGreatdane.webm
Environment
Steps to Reproduce
Expected behavior: no crash, and also it should clear the prompt.
Actual behavior: it doesn't clear the prompt, and then crashes the terminal.
The text was updated successfully, but these errors were encountered: