xXm0dzXx

Concept Picture Email Client

Oct 13th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. local x,y = term.getSize()
  2. local user = "[email protected]";
  3. local cPrint = function(text)
  4. local x2,y2 = term.getCursorPos()
  5. term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  6.  
  7. print(text)
  8. end
  9.  
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. cPrint("/--=Welcome=--\\")
  13. cPrint("| N-Mail v1.0 |")
  14. cPrint("\\--=Welcome=--/")
  15. print()
  16. cPrint("[ ] Messages [01]")
  17. cPrint("[X] Contacts [09]")
  18. cPrint("[ ] Junk [50]")
  19. cPrint("[ ] Spam [9001]")
  20. cPrint("[ ] Exit [Don't]")
  21. term.setCursorPos(1,y)
  22. write("#" ..os.getComputerID())
  23.  
  24. term.setCursorPos(#user-1, y)
  25. write(user)
  26. sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment