Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = {}
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.red)
- textutils.slowPrint("RedstoneOS 5.1")
- term.setTextColor(colors.lime)
- textutils.slowPrint("Type -help- to see the commands.")
- write("> ")
- local input = read()
- t[#t + 1] = read()
- if t[#t] == "help" then
- textutils.slowPrint("-help: See all commads.")
- textutils.slowPrint("-files: See all saved files.")
- textutils.slowPrint("-back: Return back to the start.")
- textutils.slowPrint("-clear: Clears the terminal.")
- write("> ")
- elseif t[#t-1] == "help" and t[#t] == "cu" then
- print("test")
- sleep(2)
- elseif t[#t] == "files" then
- textutils.slowPrint("test2")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement