local Alphaprimary = false
local Alphasecondary = false
local Betaprimary = false
local Betaprimary = false
local Command = stop
while Command == stop do
term.clear()
term.setCursorPos(1, 1)
print("What refinery command would you like to execute?\nIf you don't know what to type, type 'help')")
Command = read()
while Command ~= stop do
if Command==test then
term.clear()
term.setCursorPos(1, 1)
print("This is a test")
sleep(3)
Command = stop
sleep(1)
end
if Command == help then
term.clear()
term.setCursorPos(1, 1)
print("You may type the following:")
print("'help' to display this text.")
print("'alpha primary on' to turn the Alpha Primary Engines on.")
print("Type 'stop' on any screen to go back to command line")
Command = read()
end
What I am trying to achieve is an infinite loop that when a user enters a listed command, it will execute that command and reset itself. But I have been unable to achieve that, Help? Yes this code is very much unfinished...












