lite
lite copied to clipboard
add system.popen
Lua's io.popen
opens a "Console window" when used.
This PR addresses that issue by using Windows' CreateProcess
with CREATE_NO_WINDOW
to prevent that from happening. For compatibility, a simple wrapper over popen
is provided for non Windows systems.
It has been a while since I wrote any C code. Suggestions are welcome :)