diff --git a/lazproj/test/src/runnable_console.d b/lazproj/test/src/runnable_console.d new file mode 100644 index 00000000..9d7161ff --- /dev/null +++ b/lazproj/test/src/runnable_console.d @@ -0,0 +1,25 @@ +module console; + +/* + The most simple console wrappr'. + + usage: + ------ + - Use Coedit menu, Compile and Run file to execute. + - use the "Process input widget to pass" commands. + - Don't forget that the Messages widget restricts the item count. + - type "exit" and press SEND to quit. +*/ +void main(string args[]) +{ + import std.process; + // + version(Windows) + string prgname = "cmd"; + else + version(Linux) string prgname = "xterm"; + else + assert(0, "unsupported target"); + // + prgname.spawnProcess.wait; +}