Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Dear Reader,
- --
- --This OS was made by Tripy998 for simplicity.
- --Please wait before saying "(x) is not on this!"
- --He is woring on updating it!
- --Thank you,
- --
- --Tripy998
- shell.run("pastebin get 3XEeYmrH prompt")
- print("Prompt API was downloaded for use by SOS")
- print("It is Copyrighted under 1lann")
- sleep(2)
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.orange)
- function clock( x,y )
- time = os.clock()
- term.setCursorPos(x,y)
- print(textutils.slowWrite(textutils.formatTime(os.time(), false)))
- end
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- clear()
- os.loadAPI("prompt")
- term.setCursorPos(19,7)
- textutils.slowWrite("SOS")
- term.setCursorPos(16,8)
- textutils.slowWrite("Simple. Elegant. Useful.")
- clock(23,8)
- enter = prompt.prompt({{"Enter OS", 20, 9}})
- if enter == "Enter OS" then
- clear()
- paintutils.drawLine(1,19,51,19,colors.blue)
- clock(23,2)
- menu = prompt.prompt({{"Menu", 1, 19}})
- if menu == "Menu" then
- paintutils.drawLine(1,18,10,18,colors.yellow)
- quit = prompt.prompt({{"Exit",1,18}})
- if quit == "Exit" then
- clear()
- term.setCursorPos(15,1)
- textutils.slowWrite("Thanks for using TripyOS")
- term.setCursorPos(1,2)
- shell.run("shell")
- end
- end
- end3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement