Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function login(rl)
- local username,password
- repeat
- term.setCursorPos(3, 7)
- print([[Username: |]])
- term.setCursorPos(3, 8)
- print([[Password: |]])
- term.setCursorPos(12, 7)
- username = read()
- term.setCursorPos(12, 8)
- password = read([[x]])
- term.setCursorPos(3, 9)
- print([[need to change? y for yes, n for no]])
- term.setCursorPos(3, 10)
- local change = read()
- until change == [[n]]
- print(username) --nil
- print(password) --nil
- end
Advertisement
Add Comment
Please, Sign In to add comment