jcward / vscode-hxcpp-debug

VSC debug adapter for Haxe hxcpp runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows - runInTerminal doesn't work

jcward opened this issue · 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.

You need something called AllocConsole()

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