Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- If you are changing the settings, you must
- keep in mind that only a restore can fix
- broken things.
- only change the colours unless you know LUA
- well, from CraftCo.
- --]]
- username = fs.open("CraftOS/Terminal/Username","r")
- if username then
- username1 = username.readLine()
- end
- term.setBackgroundColour(colours.lightBlue)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(0.7)
- print (" ")
- print (" START "..username1)
- term.setCursorPos(2, 5)
- term.setBackgroundColour(colours.orange)
- print (" ")
- term.setCursorPos(2, 6)
- print (" ")
- term.setCursorPos(2 ,7)
- print (" RExplorer ")
- term.setCursorPos(2, 8)
- print (" ")
- term.setCursorPos(2, 9)
- print (" ")
- term.setBackgroundColour(colours.blue)
- term.setCursorPos(18, 5)
- print (" ")
- term.setCursorPos(18, 6)
- print (" ")
- term.setCursorPos(18, 7)
- print (" Terminal ")
- term.setCursorPos(18, 8)
- print (" ")
- term.setCursorPos(18, 9)
- print (" ")
- term.setBackgroundColour(colours.lime)
- term.setCursorPos(34, 5)
- print (" ")
- term.setCursorPos(34, 6)
- print (" ")
- term.setCursorPos(34, 7)
- print (" NC ")
- term.setCursorPos(34, 8)
- print (" ")
- term.setCursorPos(34, 9)
- print (" ")
- term.setBackgroundColour(colours.red)
- term.setCursorPos(2, 11)
- print (" ")
- term.setCursorPos(2, 12)
- print (" ")
- term.setCursorPos(2, 13)
- print (" CC ")
- term.setCursorPos(2, 14)
- print (" ")
- term.setCursorPos(2, 15)
- print (" ")
- term.setBackgroundColour(colours.purple)
- term.setCursorPos(18, 11)
- print (" ")
- term.setCursorPos(18, 12)
- print (" ")
- term.setCursorPos(18, 13)
- print (" Settings ")
- term.setCursorPos(18, 14)
- print (" ")
- term.setCursorPos(18, 15)
- print (" ")
- term.setBackgroundColour(colours.grey)
- term.setCursorPos(34, 11)
- print (" ")
- term.setCursorPos(34, 12)
- print (" ")
- term.setCursorPos(34, 13)
- print (" Run CCiri ")
- term.setCursorPos(34, 14)
- print ("(reboot to exit)")
- term.setCursorPos(34, 15)
- print (" ")
- term.setBackgroundColour(colours.lightBlue)
- term.setCursorPos(2, 17)
- answer = read ()
- if answer == "rexplorer" then
- shell.run("RExplorer")
- end
- if answer == "terminal" then
- sleep(0)
- end
- if answer == "nc" then
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(1)
- shell.run("NC")
- end
- if answer == "cc" then
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(1)
- shell.run("cc")
- end
- if answer == "settings" then
- term.clear()
- term.setCursorPos(1, 1)
- print ("Change username or password?")
- print ("---------------------------------------------------")
- print (" ")
- write(" What would you like to change? ")
- answer = read ()
- if answer == "username" then
- shell.run("edit CraftOS/Terminal/Username")
- else
- if answer == "password" then
- shell.run("edit CraftOS/Terminal/Password")
- end
- end
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- end
- if answer == "run cciri" then
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(1)
- shell.run("cciri")
- end
- sleep(1)
- term.setBackgroundColour(colours.black)
- term.clear()
- term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement