-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Terminal doesn't translate LF to CR on paste; it only translates CRLF #5821
Comments
Stock powershell.exe shares the same behavior. Also seen this in PowerShell Core 7. |
That is strange. I would call that CMD and WSL work properly evidence that it is possible for the shell to either mess this up or fix it, so... |
Rafael, if you |
I was about to add that. But I wouldn't really say "CMD and WSL works property". First, in CMD the
|
Even curiouser: It works "fine" (that is: to the same extent as cmd and without PSReadline) for me on PowerShell 7.0 and 7.1-preview. I was inclined to call this a miss in our clipboard conversion, but... it looks like there's no consensus here.
I guess that means that both of WT and putty are wrong 😄 |
Well, conhost does it right. I guess that's it then. I'm renaming your bug ;P |
Thanks all! A++ would file another bug. |
🎉This issue was addressed in #8634, which has now been successfully released as Handy links: |
🎉This issue was addressed in #8634, which has now been successfully released as Handy links: |
- Detect `\r` when warning about multi line paste - Translate `\n` to `\r` on paste ## PR Checklist * [x] Closes microsoft#8601 * [x] Closes microsoft#5821 ## Validation Steps Performed Manual testing
Notes from @DHowett-MSFT:
Line ending conversions by other terminals
\r\n
(CRLF)\r
✔️\r
✔️\r
✔️\r
✔️\r
✔️\r
(CR)\r
✔️\r
✔️\r
✔️\r
✔️\r
✔️\n
(LF)\r
✔️\n
❌\n
❌\r
✔️\r
✔️I guess that means that both of WT and putty are wrong 😄
--- original filing below ---
Environment
Steps to reproduce
Expected behavior
Similar behavior to cmd.exe and wsl, in that the pasted lines are in original order and intact.
Actual behavior
Bamboozled. Lines are presented in reverse order.
Screenshots
The text was updated successfully, but these errors were encountered: