-
Notifications
You must be signed in to change notification settings - Fork 511
Problem with wrapping and terminal input #2251
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
Comments
@WembleyFord2 thanks for opening this issue and providing detailed information...PSReadLine provides some of the code wrapping behavior and so having it enabled may resolve this issue...can you confirm that in your VSCode settings you have |
Thanks for that suggestion - it does seem to have cured the problem. I did not have any powershell.developer.featureFlags line in the settings .json file - adding it in with PSReadLine did fix the issue. I must admit I am curious as to why this is broken out of the box and no-else seems to have noticed it. |
Just fair warning, the PSReadLine experience isn't the best on PowerShell 6... We highly recommend using PowerShell 7 (which is in preview) for a much nicer experience. |
@TylerLeonhardt Just curious, but what's different in PowerShell 7 that makes the PSReadLine experience better? |
@gwojan PowerShell 7 moved to .NET Core 3.0. In .NET Core 3.0, the completely redid the System.Console APIs. In that change, the made the PowerShell Integrated Console experience much more stable and "what you would expect". For example,
and a few other small details. We feel that it's not worth it to put in the engineering effort to fix this for PowerShell 6 as that will go EOL 6 months after PowerShell 7's release (which is around when we will be shipping this PSRL stuff into stable). |
@WembleyFord2 glad to hear that resolved the issue for you, I will close this as a duplicate as PSReadLine, with a feature flag, is available in the PowerShell Preview extension, and we are tracking that PSReadLine is not available in the main PowerShell Extension here #1793 |
Issue Description
I am experiencing a problem with the terminal when it reaches the bottom of the terminal windows, wrapping breaks. For instance, if I type a series of characters longer than the line it wraps as one would expect and left and right cursor movements work as expected.
If the cursor gets to the last time of the window, then the behaviour breaks down. For instance, the cursor no longer moves up and down between the current line and the previous one.
And using backspace to delete characters from the upper part of the line causes even more distortion.
I've tested this on a clean installation of Ubuntu 18.04 with the latest Powershell, Code and Powershell Extension (and also the Preview extention). My LANG is set to en-GB.UTF-8. There are no problems with pwsh running from within bash on an xterm or Gnome Terminal or any other terminal, and there are no problems with the bash terminal in Core.
Any advice would be very welcome. This is making development work of PS scripts a real problem.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: