Repository navigation
Closed
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Priority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.good first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Description
Description of the new feature/enhancement
Currently when you copy text it clears your selection. While this is current behavior for some terminals, this is different than standard Windows behavior. Most Windows programs simply leave the text selected and require some other action to deselect the text. This is particularly bad if you have remapped Copy to Ctrl-C, then accidentally hitting it twice can result in killing your running process accidentally. Additionally, I frequently will copy text, then need to come back to it later to recopy, but due to this issue I have to re-select the text frequently.
I just want copy/paste to work the same here that it does in every other program.
Reacted by Fawad, OwlInSunglasses, V P, rick-pri, Noé Martínez, nomeaning, Bryan Murphy, aditya sahu, Jack and The Black Samurai
Reacted by Jack
Reacted by Jack
Reacted by Jack
Metadata
Metadata
Assignees
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Priority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.good first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Activity
DHowett-MSFT commentedon Dec 9, 2019
Incidentally, the collision between copy and cancel (one of which is handled by the terminal emulator, and the other of which is handled by the remote application) is why we haven't bound Ctrl+C by default.
There's a lot of different feature requests around copying, and people have a lot of different requirements here. We should converge them, if possible.
carlos-zamora commentedon Jun 5, 2020
Just thinking out loud. Here's a few thoughts:
copyOnSelect, I feel that this should be a global settingpersistSelectionOnCopy(default isfalse)Originally thought of naming it
clearSelectionOnCopy(default istrue), but I've been told before that we should try and make the defaultfalse. So any thoughts as to what this setting could be called is much appreciated :) (for now I'm just going with the plan above).EDIT: alternatively,
persistentSelectionorpersistSelection? slightly shorter4 remaining items
zadjii-msft commentedon Jul 6, 2022
From #13438
vladisaev12 commentedon Nov 19, 2025
You could take the linux approach:
(in pseudo-code)
Jotanune commentedon Apr 5, 2026
Hi, I'm looking to make my first contribution to the terminal and I'd love to pick up this issue. I plan to follow Mike Griese (@zadjii-msft) 's approach from 2022: adding a dismissSelection boolean property to the copy action (defaulting to true to preserve current behavior). Could you assign this to me?
DHowett commentedon Apr 5, 2026
Javier Núñez (@Jotanune) we do not assign bugs to first-time contributors. Most of them do not come back. Fortunately, you do not need to be assigned a bug to work on it! :)
Jotanune commentedon Apr 6, 2026
Understood, that makes total sense. I'll start working on it locally and will open a Draft PR as soon as I have the basic logic implemented so you can see the progress.
Jotanune commentedon Apr 6, 2026
Hey Dustin L. Howett (@DHowett) , while digging into the codebase to start implementing this, I found out that this feature is actually already implemented. It looks like it was merged back in July 2023 in PR #15552 (which closed the duplicate issue #15371). The dismissSelection property is already present in CopyTextArgs and working as intended. It seems this issue was just left open by mistake because the PR referenced the duplicate instead of this one. I'll go hunt for another good first issue from the backlog to work on. Cheers!
DHowett commentedon Apr 6, 2026
Wow, good find! Thanks so much.
/dup #15371
microsoft-github-policy-service commentedon Apr 6, 2026
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!