Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function nextline()
- x, y = printer.getPageSize()
- newline = y + 1
- printer.setCursorPos(1,newline)
- end
- clear()
- print("What side is your printer on?")
- side = read()
- printer = peripheral.wrap(side)
- clear()
- print("What is your name? [Must be under 19 chars or under]")
- name = read()
- printer.newPage()
- printer.setPageTitle(name.."'s Licence")
- nextline()
- printer.write("Name: "..name)
- nextline()
- clear()
- print("What is your status [Must be 17 chars or lower]")
- status = read()
- printer.write("Status: "..status)
- nextline()
- clear()
- print("What is your occupation? [Must be 13 chars or lower]")
- occupation = read()
- printer.write("Occupation: "..occupation)
- printer.endPage()
- clear()
- print("Licence Finished")
- sleep(1)
- clear()
Advertisement
Add Comment
Please, Sign In to add comment