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

Console error on clear using "ctrl"+"L" #2804

Closed
rafikalid opened this issue Aug 31, 2021 · 1 comment
Closed

Console error on clear using "ctrl"+"L" #2804

rafikalid opened this issue Aug 31, 2021 · 1 comment

Comments

@rafikalid
Copy link

Console has many problemes on windows when using as "tab"
copy and past do not work properly, and when trying to clear the console using "cntrl+L", it brocks!

Last 61 Keys:
UpArrow Enter
Ctrl+c Ctrl+l UpArrow Enter
Ctrl+l UpArrow Enter
Ctrl+l UpArrow Enter
Ctrl+l UpArrow Ctrl+l Enter
Ctrl+l UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace
Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace UpArrow Enter
Ctrl+l UpArrow Enter
Ctrl+l UpArrow Ctrl+l Enter
Ctrl+l UpArrow Ctrl+l Enter
UpArrow Enter
Ctrl+l Escape Ctrl+l 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 -17.
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)

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Aug 31, 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 Sep 9, 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