mirror of
https://github.com/LDDestroier/CC/
synced 2025-06-11 23:24:05 +00:00
Fixed clean exit
whoops
This commit is contained in:
parent
23db0290c1
commit
70383c7658
@ -547,7 +547,6 @@ local newInstance = function(x, y, program, initialStart)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep(0)
|
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorBlink(false)
|
term.setCursorBlink(false)
|
||||||
local text, evt = "Press SPACE to start workspace."
|
local text, evt = "Press SPACE to start workspace."
|
||||||
@ -557,7 +556,6 @@ local newInstance = function(x, y, program, initialStart)
|
|||||||
evt = {os.pullEventRaw()}
|
evt = {os.pullEventRaw()}
|
||||||
until (evt[1] == "key" and evt[2] == keys.space) or evt[1] == "terminate"
|
until (evt[1] == "key" and evt[2] == keys.space) or evt[1] == "terminate"
|
||||||
sleep(0)
|
sleep(0)
|
||||||
|
|
||||||
if evt[1] == "terminate" then
|
if evt[1] == "terminate" then
|
||||||
isRunning = false
|
isRunning = false
|
||||||
return
|
return
|
||||||
@ -613,7 +611,8 @@ local inputEvt = {
|
|||||||
mouse_scroll = true,
|
mouse_scroll = true,
|
||||||
mouse_drag = true,
|
mouse_drag = true,
|
||||||
mouse_up = true,
|
mouse_up = true,
|
||||||
paste = true
|
paste = true,
|
||||||
|
terminate = true
|
||||||
}
|
}
|
||||||
|
|
||||||
local fullScroll = function(xDir, yDir)
|
local fullScroll = function(xDir, yDir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user