Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Terms
- --1. Get Screen Size
- x, y = term.getSize()
- --2. printOS() X Pos
- p = 1
- --Functions
- --1. Main Install Code
- function install()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- printOS()
- print("Initiating...")
- sleep(1)
- printOS()
- print("Loading System Files...")
- sleep(1)
- printOS()
- print("Loading Disk <//disk/myOS/> ...")
- sleep(1)
- printOS()
- if fs.exists("myOS/mySystem/myOS.app") == false then
- os.run("pastebin", "get", "code here", "myOS/mySystem/myOS.app")
- else
- print("System Application has been detected")
- end
- os.run({}, "myOS/mySystem/myOS.app")
- end
- --2."<myOS>" printing
- function printOS()
- term.setCursorPos(1,p)
- term.setTextColor(colors.red)
- print("myOS>")
- term.setTextColor(colors.black)
- term.setCursorPos(6,p)
- p = p + 1
- end
- --Loading Programs
- --1. Login User Interface
- install()
- --2.Pastebin
Advertisement
Add Comment
Please, Sign In to add comment