09-14-2022, 06:13 PM
P.S., if you want to copy from a console, I think you can highlight and use the right-click. Also, if you definitely want to use CTRL+C then you have to add some sort of custom pause when running headless that way you don't kill the program. Or, you can run your console program from command prompt, PowerShell, or Windows Terminal and then the terminal will stay open when you use CTRL+C.
Ask me about Windows API and maybe some Linux stuff