Closed upendra045 closed 3 months ago
@upendra045, you were using a pretty old version of PSReadLine (2.0.0-beta2 or prior), and it's likely that the issue was fixed in a newer version. Please upgrade to the 2.3.5 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.
Prerequisites
Exception report
Screenshot
i mistakenly clear the console but i have that copied text of error
Environment data
Steps to reproduce
The error occurred when I pressed Ctrl+L to clear the console in PowerShell. I am using Windows 10 with PowerShell version 5.1.19041.4648 and PSReadLine version 2.0.0-beta2. It seems to be an issue with the cursor position being set outside the console buffer range (BufferHeight: 12). This error happens repeatedly in similar circumstances.
Expected behavior
The console should clear without any errors, with the cursor resetting to the top of the screen.
Actual behavior