Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l,h = term.getSize()
- exit = false
- wlc = "Welcome to NekoTiki OS"
- wa = wlc:len()
- wap = wa * (-1)
- function welcome()
- term.setTextColor(colors.purple)
- for i=1,wlc:len()*2-6 do
- term.clear()
- term.setCursorPos(wap,3)
- wap = wap + 1
- write(wlc)
- sleep(0.1)
- end
- sleep(4)
- end
- function cmds()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- print("Nekotiki OS.")
- term.setTextColor(colors.blue)
- write(">>")
- term.setTextColor(colors.yellow)
- cmd = read()
- end
- welcome()
- while exit==false do
- cmds()
- if cmd == "pass" then
- term.setTextColor(colors.red)
- print("PassWord :")
- term.setTextColor(colors.blue)
- write(" >>")
- term.setTextColor(colors.yellow)
- pass = read("*")
- if pass == "good" then
- term.setTextColor(colors.green)
- print("Pass Correct. Good Bye !!")
- sleep(2)
- term.setCursorPos(1,1)
- term.clear()
- exit=true
- else
- term.setTextColor(colors.red)
- print("Pass Incorrect.")
- sleep(2)
- end
- else
- print("Commande Inconnue.")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement