Skip to content

Copying text still includes white space instead of newlines #2944

Closed
@moritzuehling

Description

@moritzuehling

Hi everyone,

I thought this was addressed in #2797, but it didn't. It might be a duplicate of #174.

The problem

In short, copying + pasting is very weird with newlines. In some cases, it seems to copy only some of them:

image

But using clear in the WSL seems to reliably and effectively completely break copying.
image

It doesn't copy any whitespaces, instead, it copies the buffer as-is.

The same effect seems to occur with PowerShell. Here without a clear beforehand:
image

And here with a clear beforehand:
image

System info

The selected console is a standard WSL Ubuntu, as detected by the terminal:

    {
      "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
      "hidden": false,
      "name": "Ubuntu",
      "source": "Windows.Terminal.Wsl"
    }

If it's a powershell, it's similar:

    {
      // Make changes here to the powershell.exe profile
      "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
      "name": "Windows PowerShell",
      "commandline": "powershell.exe",
      "hidden": false
    },

Nothing in the config has been changed, besides adding two (unrelated) profiles. In the screenshot, the Windows Terminal was freshly opened.

Version information of Windows Terminal:

Windows Terminal (Preview)
Version: 0.5.2681.0

System + Build Info:
image

If I can help with providing anything else, please do ask.

Metadata

Metadata

Assignees

Labels

Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions