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

clear screen after zoom-in #2945

Closed
1 of 3 tasks
yasircoskun opened this issue Nov 3, 2021 · 1 comment
Closed
1 of 3 tasks

clear screen after zoom-in #2945

yasircoskun opened this issue Nov 3, 2021 · 1 comment

Comments

@yasircoskun
Copy link

yasircoskun commented Nov 3, 2021

Prerequisites

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

Exception report

Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 74 Keys:
 w m i c Enter
 Ctrl+l w m i c Space p r o c e s s Space g e t Space p i d Enter
 UpArrow Ctrl+Backspace p r o c e s s Ctrl+Alt+i d Enter
 UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Enter
 UpArrow Backspace Backspace Backspace Backspace Enter
 Ctrl+l Ctrl+` Ctrl+l UpArrow Enter
 Ctrl+l UpArrow UpArrow DownArrow Enter
 Ctrl+l UpArrow Enter
 Ctrl+l UpArrow Enter
 Ctrl+l

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -59.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Screenshot

image

Environment data

PS Version: 5.1.19041.1237
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.320 (WinBuild.160101.0800)
BufferWidth: 209
BufferHeight: 52

Steps to reproduce

i see an error message and report it.

reproduce step by step:
step 1: 'wmic process get'
output is too long and have multiple column
step 2: CTRL+l (clear screen)
step 3: zoom out with mause wheel
step 4: 'wmic process get'
step 5: zoom in with mause wheel
output still too long and complex
step 6: give up and clear screen with CTRL+l
last step: saw the error message


i checked all checkbox in 'Prerequisites' but i ignored.
i think this must optional. i wanna help to improve this application but i'm only user this is not my job.

this is so boring bro. if i want to help an opensource project i must more free.
This report form is aggravating. just an opinion don't hate me.

  • Sayonara

Expected behavior

just clear screen without error message

Actual behavior

show the error message

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 3, 2021
@daxian-dbw
Copy link
Member

This issue was already fixed (see #1315). Please upgrade to the 2.1.0 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants