-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Cannot use left/right arrow keys to edit text in Console.ReadLine on Unix #38051
Comments
Tagging subscribers to this area: @eiriktsarpalis |
@adamsitnik @jozkee @stephentoub I'm thinking we should move this to 7.0 for the following reasons:
Does anyone have a strong reason to merge this in 6.0, or can we move it to 7.0? |
Makes sense to me. We have seen subtle regressions in this code in the past. |
@carlossanlop sounds good to me, thanks for trying! |
Hey maintainers cc: @stephentoub @jeffschwMSFT I figured I'd take another stab at this since it seems like nobody is working on it right now |
@nickorlow Awesome! Please let us know if you need any help! |
Update on my fix: I've been able to re-implement my changes from when I did this the first time. I was also able to fix 2 of the regressions that it introduced last time. Currently there's a bug involving wrapping multiple lines that I haven't seen before. Once that's fixed, I think I should be ready for a PR. |
I was hoping PowerShell There is no perfect solution to this problem, so what we do needs to be a 'good enough'. One of the challenging cases that should work is: typing wrapped lines at the bottom of the terminal. Other challenges include:
@nickorlow did you make more progress on your fix? How does it work in the above cases? |
Description
On Windows, using the left/right arrow keys lets you modify the middle of a set of text from Console.ReadLine without having to delete any of it. However, on MacOS this feature is missing, making it so that you have to delete part of the text in order to modify other parts of it.
Configuration
Found with MacOS, not tested with Linux. Windows has this functionality already.
I intend to attempt to fix this.
The text was updated successfully, but these errors were encountered: