microsoft / microsoft/terminal

Double click to copy entire line and then pasting strips the enter

Open
#10,871 2 comments 0 reactions 0 assignees View on GitHub
Help Wanted Issue-Bug Needs-Tag-Fix Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version (or Windows build number)

1.9.1942.0

### Other Software

OpenSSH_for_Windows_8.1p1

### Steps to reproduce

Interaction: Automatically copy selection to clipboard: yes

copy paste an entire line in a config for example by double clicking
the entire line is selected
right click to copy paste it

### Expected Behavior

after the right click, I would expect the line to copy paste and include the entire. This behavior is found in PuTTY or Terminator on Linux

Or, at least give an option to copy paste the enter along

### Actual Behavior

The line is copy/pasted, but the enter is stripped and requires the user to actually hit enter to insert the line. For SSH connections on routers and pasting configuration, the automatic enter is really useful

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the double-click selection and right-click copy/paste flow with automatic selection copying enabled, using the reported Windows Terminal and OpenSSH versions. Locate the clipboard handling entry point and existing tests, then confirm that pasting a whole selected line preserves its trailing Enter without requiring a separate keypress.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.