ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

Buffer problem with Microsoft.PowerShell.Pager

Open Ergamon opened this issue 2 years ago • 0 comments

Versions

ConEmu build: 220418 x64 OS version: Windows 10 x64 Used shell version (powershell): 7.2.2 + PSReadLine 2.2.2

Problem description

The 2.2.x versions of PSReadLine add a F1 key based help system which uses Microsoft.PowerShell.Pager v1.0.0 in the background. Once you leave the help system, the screen buffer is messed up.

Steps to reproduce

  1. Install PowerShell 7.2.2
  2. Install PSReadLine 2.2 via Install-Module PSReadLine -Force
  3. Configure ConEmu to use pwsh
  4. Open a ConEmu tab with pwsh
  5. Fill the window with enough content so that more than a screen is filled (scrollbar needed)
  6. Type a command with a parameter and hit F1 (e.g. Get-Process -Name)
  7. Go up and down in the help with the arrow keys and leave the help with Q

Actual results

The screen is now empty and scrolling up and down also only shows empty content.

Expected results

Anything is shown and behaves like the F1 press and help view never happened.

It works on the plain console and in windows terminal, but not in ConEmu.

If anything more to reproduce is needed, just ask.

Ergamon avatar Apr 21 '22 19:04 Ergamon