Search code examples
c#command-lineconsoleconsole-applicationcopy-paste

Can I get copy/paste functionality from a C# Console Window?


I am developing a console application in C#, and was wondering if there was a way to get the "copy-paste" or "mark-paste" functionality into my application, similar or identical to that of the standard Windows command prompt. Is this a wild goose chase or a simple application variable?


Solution

  • Thank you Sean for making me realize the complete idiocy of this question. Let me be an example to others to not jump on the conclusion train.

    Sean pointed out that "copy-paste can be done using cmd.exe's built-in functionality", making me recognize that, yes, absolutely duh, when you run your command line application in Windows it already has this functionality available.

    I erred by jumping to conclusions, for I was doing all my initial testing with the DEBUG execution through the IDE, and vshost does not give you that functionality.

    A quick "Start Without Debugging" revealed my short-sightedness.