-
Notifications
You must be signed in to change notification settings - Fork 499
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
Integrated Terminal icons break positioning after ClearScreen
#4280
Comments
Does this repro outside of the extension terminal? |
Yes. This new gif is from the non-extension term. I noticed something new: When it's broken, some jumps go out of order when hitting the If you can see this horizontal gray bar Watch it move on the bottom right corner of the gif |
Ahh, good find, thank you. I imagine we're doing something in our clear screen implementation that acts like a command, but I certainly missed adding an escape sequence there. |
Oh, hm...we don't have a custom |
Yeah, in Code's extension terminal, I only get the behavior you see when I sets |
Oh! I read this wrong. So it isn't an extension terminal issue. Ok! I can work with @Tyriar and @SeeminglyScience to figure out how we can fix this. My bet since PSReadLine's I suppose we could intercept |
@ninmonkey can you execute: Set-PSReadLineKeyHandler -Chord "Ctrl+l" -ScriptBlock {
[Console]::Write("$([char]0x1b)]633;C`a")
[Microsoft.PowerShell.PSConsoleReadLine]::ClearScreen()
} and then see if everything works as expected with |
We're tracking this in microsoft/vscode#166864, it's not clear to me whether this is a pwsh, conpty or our issue. I believe we clear the decorations when certain erase in display sequences happen. |
This issue has been marked as external. It has been automatically closed for housekeeping purposes. |
Weird, I have force clear off. here's some settings
New debug tool -- Easier virtual environmentsRecent patches make it a lot easier to create mini-virtual environments, without doing anything crazy. [object[]]$c_args = '--extensions-dir', $addons_dir, '--user-data-dir', $user_data_dir, '--profile', 'pwsh-debug', '--add', (Get-Item $Path)
& code.cmd @c_args
The description mentions the language server, maybe that's causing unexpected behavior?
I don't remember exactly why I have
What to Test?Do you recommend anything I can test for?, for this issue or others? I can get more data on potential errors or traces and log captures -- If I know what to look for.
So I'm wondering where to start, I think
for completeness here's some loosely related settings
|
Prerequisites
Summary
Terminal Integration icons lose their positioning after clearing screen.
ctrl+l
.I have the default binding where the PSReadLine function is
ClearScreen
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
Powershell Extension
terminalctrl+l
It seems to stay broken until you reload
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: