-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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 output contains line breaks / new lines when copying #166247
Comments
This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to our code. As such, I will go ahead and close it. Please try to reproduce in Windows Terminal and report to microsoft/terminal with repro steps. If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Thanks for understanding. /label upstream terminal-conpty windows |
Wait what? Why does it have anything to do with Windows Terminal? I tested with cmd.exe/powershell, not WT. "Terminal" in title means integral terminal in VS Code, not WT. And WT itself (while irrelevant) does not even have this issue. @meganrogge : can you please clarify what you mean? Otherwise, I have no way to report it to https://github.com/microsoft/terminal since I have no issue there. |
Apologies for the confusion. Here's the relevant part of my message If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Thanks for understanding. |
@meganrogge Any chance this could get fixed in Win10 19044/19045? The regular editions are supported at least till 2025-10-14, with IoT Enterprise LTSC (for which volume licencing is newly available) supported until 2032-01-13. It seems like a bug that should be fixed as part of a cumulative update. |
This is indeed fixed in Windows with microsoft/terminal#6901 when conpty started allowing the terminal to handle line wrapping. To get this change you need a later version of Windows. We hope to eventually ship conpty with Windows but we're blocked on the terminal shipping their nuget package for that. FYI it's inconsistent because before we had to guess which lines wrapped which we did based on the last char in the line. |
For those of us who still see this issue on macOS, is there another issue we can follow? |
@lgarron this shouldn't happen on macOS, if it does then chances are it's happening because the application you're running in the terminal moved the cursor to the next time instead of properly wrapping text. |
Type: Bug
Steps to Reproduce:
Expected: the output should have no line break or new lines.
Observed: it randomly added some line breaks / new lines. It does not happen if I use stand alone cmd window, or Windows Terminal.
I never see this happen with my other machines before. But I can reproduce this consistently with this laptop. It happens with all the outputs. I tested with stable (my profile) and insider portable (brand new profile), same issue.
VS Code version: Code - Insiders 1.74.0-insider (ef41557, 2022-11-11T05:19:14.666Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: