Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run(".clear")
- local h = fs.open(".settings", "r")
- x = h.readAll()
- print(x)
- xPos, yPos = term.getCursorPos()
- term.setCursorPos(1,(yPos+1))
- h.close()
- print("Enter new username:")
- user = read()
- print("Enter new password:")
- pass = read()
- local h = fs.open(".settings", "w")
- h.writeLine("Username = "..user)
- h.writeLine("Password = "..pass)
- h.close()
- xPos, yPos = term.getCursorPos()
- term.setCursorPos(1,(yPos+1))
- shell.run("label set MagmaOS_"..user)
- print("Press any key to continue")
- os.pullEvent( 'key' )
- shell.run(".menu")
Advertisement
Add Comment
Please, Sign In to add comment