Skip to content

Commit 5143ce7

Browse files
committed
closeable window
1 parent 6bc7fe9 commit 5143ce7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Event viewer.lua

+14-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ function sysCall_init()
99
sim.test('sim.enableEvents', true)
1010
sim.test('sim.mergeEvents', true)
1111
sim.test('sim.cborEvents', true)
12-
consoleHandle = sim.auxiliaryConsoleOpen('Event viewer', 500, 16)
12+
consoleHandle = sim.auxiliaryConsoleOpen('Event viewer', 500, 20)
13+
checkClosed = function()
14+
if sim.auxiliaryConsolePrint(consoleHandle, '') == 0 then
15+
return {cmd = 'cleanup'}
16+
end
17+
end
18+
end
19+
20+
function sysCall_nonSimulation()
21+
return checkClosed()
22+
end
23+
24+
function sysCall_sensing()
25+
return checkClosed()
1326
end
1427

1528
function sysCall_addOnScriptSuspend()

0 commit comments

Comments
 (0)