Posted 29 March 2015 - 06:30 AM
I was writing a program for a easy-to-use pocket computer system, until I ran into some other issues (Which I have fixed) until I came across this: the options dont actually work.
What you would do is put in a number to select an option and it runs the code below it, but this just terminates the program. Here is the code:
What you would do is put in a number to select an option and it runs the code below it, but this just terminates the program. Here is the code:
term.clear()
term.setCursorPos(1,1)
print("1 [Chat]")
print("2 [Shell]")
print("3 [Games]")
print("4 [System Info]")
print("5 [Options]")
print("6 [Reboot]")
print(" ")
print("Selection:")
input = read()
if input == 1 then
shell.run("chat join Chat1 Blake")
elseif input == 2 then
term.clear()
term.setCursorPos(1,1)
shell.run("exit")
elseif input == 3 then
shell.run("games")
elseif input == 4 then
term.clear()
term.setCursorPos(1,1)
shell.run(id)
shell.run(time)
shell.run(drive)
elseif input == 5 then
-- leave blank
elseif input == 6 then
shell.run(reboot)
end