mirror of
https://github.com/vxcontrol/lualibs-winapi.git
synced 2026-07-01 13:54:03 -04:00
12 lines
170 B
Lua
12 lines
170 B
Lua
require 'winapi'
|
|
|
|
f = winapi.get_console()
|
|
f:read_async(function(line)
|
|
f:write(line)
|
|
if line:match '^quit' then
|
|
os.exit()
|
|
end
|
|
end)
|
|
|
|
winapi.sleep(-1)
|