Exiting a program
#1
Posted 21 February 2013 - 10:34 AM
#2
Posted 21 February 2013 - 10:39 AM
os.queueEvent("terminate") os.pullEvent("terminate")
#3
Posted 21 February 2013 - 10:41 AM
#4
Posted 21 February 2013 - 11:00 AM
#5
Posted 21 February 2013 - 11:07 AM
#6
Posted 22 February 2013 - 03:25 PM
abihoooo, on 21 February 2013 - 11:07 AM, said:
Don't. It's a bad coding habit and prints "Terminated." to the screen. Use error() (empty parentheses) or, if your program is enclosed with a loop, just use break.
#7
Posted 22 February 2013 - 03:47 PM
Dlcruz129, on 22 February 2013 - 03:25 PM, said:
#8
Posted 22 February 2013 - 04:18 PM
TheOriginalBIT, on 22 February 2013 - 03:47 PM, said:
Dlcruz129, on 22 February 2013 - 03:25 PM, said:
#9
Posted 22 February 2013 - 09:12 PM
#11
Posted 24 February 2013 - 09:54 AM
Clear()
Term.setCursorPos(1,1)
#12
Posted 24 February 2013 - 10:01 AM
abihoooo, on 21 February 2013 - 10:34 AM, said:
Has you question actually been answered yet? Mm Oh I see you said os.queueEvent("terminate") works but like people said, it's probably not the best way ... if it's outside a function, use return, inside a function - use a boolean or whatever for it to check if it must end or whatever
Lewis.holcombe, on 24 February 2013 - 09:54 AM, said:
Clear()
Term.setCursorPos(1,1)
Clear() is not a function
You're probably thinking of term.clear() and all that does is clear the screen
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users