-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Environment
PS version: 5.1.19041.1023
PSReadline version: 2.0.0-beta2
os: 10.0.19041.320 (WinBuild.160101.0800)
PS file version: 10.0.19041.320 (WinBuild.160101.0800)
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 183
BufferHeight: 50
Exception report
Last 200 Keys:
x d Ctrl+c Ctrl+r - a x Backspace f Backspace x Backspace z Backspace Ctrl+c Ctrl+r a x f d Backspace Backspace Backspace f d Backspace Backspace Backspace Ctrl+c Ctrl+c Ctrl+c Ctrl+c g i t Space c l e a n Space - f x d Enter
g i t Space s t a t u s Enter
b u i l d Tab Enter
b u i l d Tab Enter
b u i l Tab Enter
UpArrow Enter
b u i l d Tab Enter
UpArrow Enter
b u i l d Tab Enter
UpArrow Enter
b u i Tab Enter
b u i l d Tab Enter
b u i l d Tab Enter
b u i l d Tab Enter
b u i l Tab Enter
b u i l d Tab Enter
UpArrow UpArrow DownArrow Enter
Enter
n o d e Space - v Enter
d o c k e r Space p s Enter
d o c k e r Space c o m c p o s e Space p s Enter
d o c k e r Space c o m p o s e Space p s 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 -35.
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)
Steps to reproduce
Sometimes when trying to clean the screen, pressing CTRL + L.
Expected behavior
The screen cleaned and the cursor in the first line of PowerShell
Actual behavior
The exception is displayed in PowerShell asking to open a PR here. It happens sometimes, so it is hard to force the reproduction.