Posted 25 March 2012 - 11:38 AM
Hey, so I have this code for a password to unlock a door…
How would I make it so whatever the user types in come out as *****'s?
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Inc.")
print("-------------------")
print("")
print("Please Enter Password: ")
p = read()
if p == 'lol123' then
print("")
textutils.slowPrint(". . .")
print("")
sleep(3)
print("Password Correct! You may enter!")
rs.setOutput("right", true)
sleep(3)
rs.setOutput("right", false)
else
print("")
textutils.slowPrint(". . .")
sleep(3)
print("")
print("Password Incorrect! Please Try Again!")
sleep(3)
end
os.reboot()
How would I make it so whatever the user types in come out as *****'s?