Advertisement
Guest User

startup.lua

a guest
Sep 21st, 2023
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. local t = {}
  2.  
  3. while true do
  4.  
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. term.setTextColor(colors.red)
  8. textutils.slowPrint("RedstoneOS 5.1")
  9. term.setTextColor(colors.lime)
  10. textutils.slowPrint("Type -help- to see the commands.")
  11. write("> ")
  12. local input = read()
  13. t[#t + 1] = read()
  14. if t[#t] == "help" then
  15. textutils.slowPrint("-help: See all commads.")
  16. textutils.slowPrint("-files: See all saved files.")
  17. textutils.slowPrint("-back: Return back to the start.")
  18. textutils.slowPrint("-clear: Clears the terminal.")
  19. write("> ")
  20. elseif t[#t-1] == "help" and t[#t] == "cu" then
  21. print("test")
  22. sleep(2)
  23. elseif t[#t] == "files" then
  24. textutils.slowPrint("test2")
  25. sleep(1)
  26.  
  27. end
  28. end
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement