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

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

Closed
3 tasks done
lexiismadd opened this issue Jul 20, 2023 · 6 comments · Fixed by #205 or #207
Closed
3 tasks done

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

lexiismadd opened this issue Jul 20, 2023 · 6 comments · Fixed by #205 or #207

Comments

@lexiismadd
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

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
Copy link
Collaborator

tig commented Jul 20, 2023

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

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

@tig
Copy link
Collaborator

tig commented Jul 20, 2023

gui-cs/Terminal.Gui#2634

@BDisp
Copy link

BDisp commented Jul 20, 2023

@alexisspencer which terminal you are using in the image?

@BDisp
Copy link

BDisp commented Jul 20, 2023

@alexisspencer which terminal you are using in the image?

Forget I already reproduced it with cmd.

@tig
Copy link
Collaborator

tig commented Aug 3, 2023

I'm reopening this as my fix does not seem to actually work. See gui-cs/F7History#13

@tig tig reopened this Aug 3, 2023
@tig
Copy link
Collaborator

tig commented Aug 3, 2023

@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.

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