Copy does NOT work as expected #6008

Closed
opened 2026-01-31 00:27:46 +00:00 by claunia · 2 comments
Owner

Originally created by @edhcah on GitHub (Jan 17, 2020).

Environment

Windows build number: 10.0.18363.592
Windows Terminal version (if applicable): 0.8.10091.0

Any other software?
None

# Steps to reproduce

**Scenario 1:**
1. Enter text at the prompt of a Windows Terminal session.
2. Select that text using the mouse.
3. Press CTRL+C.
4. results in ^C and a new line at the prompt

**Scenario 2:**
1. Run a command in a Windows Terminal session.
2. Select text from within the output using the mouse.
3. Press CTRL+C.
4. results in ^C and a new line at the prompt

# Expected behavior

Copy should work as it does in cmd.exe and powershell.exe.  When you select text with the mouse anywhere in a command prompt window or PowerShell window with the mouse (or keyboard) you are able to copy that selection using CTRL+C.

# Actual behavior

CTRL+C for copy does not work in Windows Terminal unless you select text from the active prompt.  If you run a command, for instance DIR, and then what to copy text from the output, the only option that will successfully copy is a mouse right-click.  Pressing CTRL+C will only output ^C and a new line at the prompt.

Additionally, you can only use CTRL+C, even from the prompt, if you've selected text using the keyboard (i.e. SHIFT + arrow keys).  If you use the mouse to select any text in Terminal and try to use CTRL+C to copy it, it results in ^C and a new line at the prompt.
Originally created by @edhcah on GitHub (Jan 17, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18363.592 Windows Terminal version (if applicable): 0.8.10091.0 Any other software? None # Steps to reproduce **Scenario 1:** 1. Enter text at the prompt of a Windows Terminal session. 2. Select that text using the mouse. 3. Press CTRL+C. 4. results in ^C and a new line at the prompt **Scenario 2:** 1. Run a command in a Windows Terminal session. 2. Select text from within the output using the mouse. 3. Press CTRL+C. 4. results in ^C and a new line at the prompt # Expected behavior Copy should work as it does in cmd.exe and powershell.exe. When you select text with the mouse anywhere in a command prompt window or PowerShell window with the mouse (or keyboard) you are able to copy that selection using CTRL+C. # Actual behavior CTRL+C for copy does not work in Windows Terminal unless you select text from the active prompt. If you run a command, for instance DIR, and then what to copy text from the output, the only option that will successfully copy is a mouse right-click. Pressing CTRL+C will only output ^C and a new line at the prompt. Additionally, you can only use CTRL+C, even from the prompt, if you've selected text using the keyboard (i.e. SHIFT + arrow keys). If you use the mouse to select any text in Terminal and try to use CTRL+C to copy it, it results in ^C and a new line at the prompt.
claunia added the Resolution-Duplicate label 2026-01-31 00:27:46 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jan 17, 2020):

Thanks for the bug report! The default keybinding for copy is Ctrl+Shift+C. If you want to bind Ctrl+C as copy, you can do so by following this doc.

There's a good number of threads that discuss this, but the most recent is /dup #4078

@zadjii-msft commented on GitHub (Jan 17, 2020): Thanks for the bug report! The default keybinding for copy is <kbd>Ctrl+Shift+C</kbd>. If you want to bind <kbd>Ctrl+C</kbd> as `copy`, you can do so by following [this doc](https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md#adding-copy-and-paste-keybindings). There's a good number of threads that discuss this, but the most recent is /dup #4078
Author
Owner

@ghost commented on GitHub (Jan 17, 2020):

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!

@ghost commented on GitHub (Jan 17, 2020): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6008