PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
759 stars 52 forks source link

OCGV leaves behind the bottom line of the view when closing #203

Closed lexiismadd closed 9 months ago

lexiismadd commented 1 year ago

Prerequisites

Steps to reproduce

  1. Get-Process | Out-ConsoleGridView -OutputMode Single -Title "Test"
  2. Press ENTER or ESC

Expected behavior

Close OCGV window, all of the view is removed from the console

Actual behavior

While using the latest version of Out-ConsoleGridView, when closing the view (either by selecting an item or pressing ESC), OCGV leaves behind the very bottom line of the view - the bar at the bottom which shows "SPACE Select Item | ENTER Accept | ESC Close", which on a clean console, looks unpleasant as the scripts progress.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.5
PSEdition                      Core
GitCommitId                    7.3.5
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

0.7.3

Visuals

image
tig commented 1 year ago

Yes, this is a bug in Terminal.Gui that we've been struggling with.

I'll link to the terminal.Gui issue asap.

tig commented 1 year ago

https://github.com/gui-cs/Terminal.Gui/issues/2634

BDisp commented 1 year ago

@alexisspencer which terminal you are using in the image?

BDisp commented 1 year ago

@alexisspencer which terminal you are using in the image?

Forget I already reproduced it with cmd.

tig commented 11 months ago

I'm reopening this as my fix does not seem to actually work. See https://github.com/gui-cs/F7History/issues/13

tig commented 11 months ago

@andyleejordan and/or @SteveL-MSFT 👍

Can you please point me at where PowerShell emits ANSI ESC sequences. I'm particularly interested in code where the behavior is different on Windows vs. Linux.