lite icon indicating copy to clipboard operation
lite copied to clipboard

add system.popen

Open takase1121 opened this issue 3 years ago • 0 comments

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 :)

takase1121 avatar Oct 10 '20 05:10 takase1121