Copy and Paste Bug while using Ctrl + C and Ctrl + V shortcuts #3399

Closed
opened 2026-01-30 23:20:25 +00:00 by claunia · 10 comments
Owner

Originally created by @nabanita-sarkar on GitHub (Aug 13, 2019).

Environment

Windows build number: 1903 for cmd
Windows Terminal version (if applicable): latest from the Microsoft store

Any other software? N/A

Steps to reproduce

Copy any text using keyboard shortcut ctrl + C and try to paste it using ctrl + V shortcut.

Expected behavior

This should paste the copied text in the command line.

Actual behavior

After typing Ctrl + V only ^v is showing.

Originally created by @nabanita-sarkar on GitHub (Aug 13, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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: 1903 for cmd Windows Terminal version (if applicable): latest from the Microsoft store Any other software? N/A ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> Copy any text using keyboard shortcut `ctrl + C` and try to paste it using `ctrl + V` shortcut. # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> This should paste the copied text in the command line. # Actual behavior <!-- What's actually happening? --> After typing `Ctrl + V` only `^v` is showing.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-30 23:20:26 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 13, 2019):

Do you have keybindings for copy and paste set in your profiles.json?

@zadjii-msft commented on GitHub (Aug 13, 2019): Do you have keybindings for `copy` and `paste` set in your `profiles.json`?
Author
Owner

@zadjii-msft commented on GitHub (Aug 13, 2019):

Also, please refer to the user documentation

@zadjii-msft commented on GitHub (Aug 13, 2019): Also, please refer to [the user documentation](https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md#adding-copy-and-paste-keybindings)
Author
Owner

@ghost commented on GitHub (Aug 17, 2019):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Aug 17, 2019): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@dasMulli commented on GitHub (Aug 17, 2019):

Has there been a discussion of changing the defaults to ctrl+c/ctrl+v by default similar to how the default conhost+cmd experience in windows is at the moment? (I assume there is a reason like making a lot of *nix programs hard to use?..)

@dasMulli commented on GitHub (Aug 17, 2019): Has there been a discussion of changing the defaults to ctrl+c/ctrl+v by default similar to how the default conhost+cmd experience in windows is at the moment? (I assume there is a reason like making a lot of *nix programs hard to use?..)
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 17, 2019):

We explicitly changed the defaults away from Ctrl+C/Ctrl+V because of that reason -- it's hard to use your shell and your CLI applications when your terminal emulator gets in the way by eating common key combos. #2446 goes a long way to fixing this, because it lets you bind Ctrl+C over copy but still send ^C to the connected application when there's no selection; there is, however, no reasonable heuristic we can use for Ctrl+V.

We're trying to make something approachable for Windows and Linux folks, but in some cases the best we can do is choose one option and make it trivially easy to change for the people who disagree.

@DHowett-MSFT commented on GitHub (Aug 17, 2019): We explicitly changed the defaults away from <kbd>Ctrl+C</kbd>/<kbd>Ctrl+V</kbd> _because_ of that reason -- it's hard to use your shell and your CLI applications when your terminal emulator gets in the way by eating common key combos. #2446 goes a long way to fixing this, because it lets you bind <kbd>Ctrl+C</kbd> over copy but still send `^C` to the connected application when there's no selection; there is, however, no reasonable heuristic we can use for <kbd>Ctrl+V</kbd>. We're trying to make something approachable for Windows _and_ Linux folks, but in some cases the best we can do is choose one option and make it trivially easy to change for the people who disagree.
Author
Owner

@nabanita-sarkar commented on GitHub (Aug 19, 2019):

Okay

@nabanita-sarkar commented on GitHub (Aug 19, 2019): Okay
Author
Owner

@onionhammer commented on GitHub (Sep 11, 2019):

@DHowett-MSFT What was wrong w/ how it worked in the other command prompt?

If text is selected CTRL+C copies
if text is not selected CTRL+C sends signal

@onionhammer commented on GitHub (Sep 11, 2019): @DHowett-MSFT What was wrong w/ how it worked in the other command prompt? If text is selected CTRL+C copies if text is not selected CTRL+C sends signal
Author
Owner

@zadjii-msft commented on GitHub (Sep 11, 2019):

@onionhammer When that comment was authored, the Terminal had a bug where whatever keybinding you had for copy would always try to copy, even if there wasn't a selection. Now that that bug is fixed, we can think about maybe adding Ctrl+C as a default copy keybinding again.

@zadjii-msft commented on GitHub (Sep 11, 2019): @onionhammer When that comment was authored, the Terminal had a bug where whatever keybinding you had for copy would always try to copy, even if there wasn't a selection. Now that that bug is fixed, we can think about maybe adding Ctrl+C as a default copy keybinding again.
Author
Owner

@onionhammer commented on GitHub (Sep 11, 2019):

@zadjii-msft afaict it works perfectly if I just add the key-binding in manually

@onionhammer commented on GitHub (Sep 11, 2019): @zadjii-msft afaict it works perfectly if I just add the key-binding in manually
Author
Owner

@iliveforfun commented on GitHub (Sep 24, 2019):

Also, please refer to the user documentation

already solve my problem but is there a strict format for the definition of such command? cuz when I type a command for copying, error always happens. Although my format looks like other comand

@iliveforfun commented on GitHub (Sep 24, 2019): > Also, please refer to [the user documentation](https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md#adding-copy-and-paste-keybindings) **already solve my problem** but is there a strict format for the definition of such command? cuz when I type a command for copying, error always happens. Although my format looks like other comand
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3399