4 ms·
You can cut and paste from the command prompt if you go to properties and check the "Quick Edit Mode" option. It lets you highlight with the left mouse button
by pmorici 11y ago
You can cut and paste from the command prompt if you go to properties and check the "Quick Edit Mode" option. It lets you highlight with the left mouse button and copy by simply clicking the right. w/o quick edit you first have to select 'Mark' from the context menu then you can highlight text to copy paste. It has worked this way as long as I can remember.
- baddox 11y agoAnd, bizarrely, the keyboard shortcut to copy marked text is Enter.
- Stratoscope 11y agoIn Windows 10, you can use Ctrl+C to copy and Ctrl+V to paste. If they don't work, right click the command prompt titlebar, select Properties and then the Options tab, and turn on "Enable Ctrl key shortcuts". In this same properties page, you may also find "Enable line wrapping selection" and "Extended text selection keys" useful.
- userbinator 11y agoBecause Ctrl+C was used for "interrupt" long before the concept of copy-paste came into being. Enter is often used to signify the positive end of an operation.
- ZenoArrow 11y agoIf you enable the Ctrl shortcuts for clipboard operations, what shortcut do you use to stop a running process? Has one been made available?
- ygra 11y agoHow about Ctrl+C? The meaning is unambiguous: If there is a selection, Ctrl+C is handled by the console host and copies the selection. If there is no selection, Ctrl+C is passed on to the running program which then does whatever it likes with it (i.e. in many cases terminate itself).
- ZenoArrow 11y agoYour suggestion makes sense, but my previous question was referring to how Windows handles this. Do you know if it's possible to assign Ctrl+C to both operations for the Windows 10 command prompt?
- ygra 11y agoThat was a description of how Windows handles this. Basically, the current selection and those capabilities are part of the console host. Your application running in a console window has (to my knowledge) no idea of those features; it cannot tell whether there is a selection or not or what to do with it because they happen transparently a layer above your application (between your application and the window manager, essentially). So the question you're asking is a bit moot, in a way, considering that the answer is yes, because that's exactly the way it is. It cannot be any other way, as far as I can see.
- JoBrad 11y agoYou can use CTRL+Ins to copy and Shift+Ins to paste, too
- gaius 11y agoThat feature has been there for 20+ years!