Closed lexiismadd closed 4 months ago
I can't reproduce this. Terminal.Gui used to have behaviors that caused this but that was fixed recently.
Can you please start Windows Terminal with the debug tap turned on and share the ANSI ESC codes that get sent when OCGV closes?
I'm looking to see if ESC[0J
, ESC[1J
, or ESC[3J
is emitted.
Sorry, i'm a bit confused where to add this setting in Windows Terminal:
"debugFeatures": true,
Sorry, i'm a bit confused where to add this setting in Windows Terminal:
"debugFeatures": true,
Open WT's Settings. On the bottom of the window is:
Click that. The .json settings file will open in you editor:
Sure, here you go.. https://wtools.io/paste-code/bOM0
Please:
Find where Microsoft.PowerShell.ConsoleGuiTools
is installed:
$env:PSModulePath -split ';'
In that directory, find Terminal.Gui.dll
:
Extract Terminal.Gui.dll from the attached zip file and copy it over the one in that directory (you may have to kill all pwsh instances first).
See if it fixes the problem. If it doesn't please capture the WT debug feed again and tell me if you see 1047l
or 1049l
here:
Close␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣
␛[K␛[69;222H␛[m␛[13;28;13;1;32;1_␛[13;28;13;0;32;1_␛[8;68;133t␛[?1003;1006l␛[?1047l
Hi, no luck I'm afraid. Those codes don't even appear... Here's the capture again after the updated dll was added: https://pastes.io/7hw63g7ujz
I see
Close␣␣␣␣␣␣␣␣␣. .. ␛[?1003;1006l␛[?1047l
So, for some reason the new dll didn't get picked up. I may have had you copy it to the wrong place.
Can you search your HDD for instances of Terminal.Gui.Dll?
@alexisspencer Please grab the latest. This should be fixed. Can you confirm?
ty!
Prerequisites
Steps to reproduce
When using out-consolegridview in Terminal, it clears all of the console history other than what was on the terminal window when out-consolegridview is called, meaning you cannot scroll back up past what was on the screen when out-consolegridview is called. Unsure if this happens in regular PS Core, but it occurs in Terminal v1.17.11461.0 with ocgv 0.7.4.
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
0.7.4
Visuals
No response