vscode-hxcpp-debug icon indicating copy to clipboard operation
vscode-hxcpp-debug copied to clipboard

Windows - runInTerminal doesn't work

Open jcward opened this issue 9 years ago • 3 comments

I have a feature called runInTerminal which is supposed to launch a separate terminal window for your app (in case you want to debug a CLI, but still need to interact with the stdin/stdout of your app.) This works in Ubuntu with gnome-terminal, mac with open, and I have a command with start /wait cmd /C ... that seems to do what I want from a cmd prompt, but not when launched by Sys.process. Here's the runInTerminal code.

jcward avatar Dec 16 '15 15:12 jcward

You need something called AllocConsole()

ncannasse avatar Dec 16 '15 17:12 ncannasse

http://www.halcyon.com/~ast/dload/guicon.htm

ncannasse avatar Dec 16 '15 17:12 ncannasse

Thanks for the pointer @ncannasse, I'll check that out.

jcward avatar Dec 17 '15 02:12 jcward