Advertisement
Guest User

startup

a guest
May 25th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. m.setBackgroundColor(colors.green)
  3. m.setTextColor(colors.black)
  4. m.setCursorPos(1,1)
  5.  
  6. x,y = m.getSize()
  7. m.setCursorPos(x/2,1)
  8.  
  9. m.write("----- TO DO LIST -----")
  10. lwrite("Industrial Grinder");
  11. lwrite("Power Storage Cells");
  12.  
  13. function lwrite(text)
  14. lx,ly = m.getCursorPos()
  15. m.setCursorPos(1,ly+1)
  16. m.write(text)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement