Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minimum = 6
- i = 1
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- while i < 8 do
- term.setCursorPos(10, minimum + i)
- write(" ")
- i = i + 1
- end
- term.setCursorPos(11, 7)
- write(" Password ")
- term.setCursorPos(11, 11)
- write("write delete for remove")
- term.setCursorPos(13, 12)
- write(" password")
- term.setCursorPos(11, 9)
- term.setBackgroundColor(colors.white)
- write(" ")
- term.setCursorPos(11, 9)
- term.setTextColor(colors.black)
- password = read("X")
- if password ~= "delete" then
- if password ~= "" then
- file = fs.open(".tde-password", "w")
- file.writeLine(password)
- file.close()
- end
- else
- if fs.exists(".tde-password") then
- shell.run("rm .tde-password")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement