1

I've used the command prompt, cygwin, mobaxterm in Windows. Although they do support copy-paste, the operation is usually not that straightforward. The selection of the text in the command prompt is weird, and copy-paste the text requires multiple clicks or key combination.

Yet, in mac os, for example, you can easily copy-paste in the terminal using the usual practice Ctrl+C/Ctrl+V. I wonder why things cannot be similarly easy for Windows command-line tools. Is this caused by some technical or implementation concerns?

phuclv
  • 26,555
  • 15
  • 113
  • 235
Ida
  • 121
  • 4
  • just a quick note: Make a shortcut for the CMD.exe , then play with the shortcuts "properties" (right click). In the "Options" tab find the "Edit Options" the 2 options "Quick Edit" and "Insert Mode" there change a few things. That is what they told me to change , way back when, it doesnt make it intuitive , but it does change things for editing and copy paste stuff. – Psycogeek Jul 22 '14 at 04:08
  • 2
    [Why doesn't windows command prompt still support ctrl + v?](http://superuser.com/q/675619/241386), [Why does Ctrl + V not paste in Bash (Linux shell)?](http://superuser.com/q/421463/241386) – phuclv Nov 07 '16 at 16:37

1 Answers1

1

Ctrl+key is used to send signals to console programs, for example Ctrl+C will terminate the running app. Therefore generally it can't be used for shortcuts. That's why Linux terminals often use Ctrl+Shift+key instead.

To copy/paste quickly, in previous versions of Windows there's a "quick edit mode", which is not enabled by default. In this mode you select the text and press Enter to copy, no need to enter mark mode like before. Then right click on the console to paste, just like what a middle click on Linux does. Still a bit cumbersome but anyway a lot faster than doing without it

Since Windows 10 MS has introduced some big console improvements. Now you can use Ctrl+C/Ctrl+V for copying/pasting in Windows 10 terminal when there's some text being selected, otherwise a signal will be sent to the program like before.

phuclv
  • 26,555
  • 15
  • 113
  • 235