Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. up = peripheral.wrap("top")
  3. term.setCursorPos(20,1)
  4. print("Direction?")
  5. d = string.lower(read())
  6. if d == "up" then
  7.   monitor = up
  8. elseif d == "down" then
  9.   monitor = down
  10. elseif d == "right" then
  11.   monitor = right
  12. elseif d == "left" then
  13.   monitor = left
  14. end
  15. term.setCursorPos(12,1)
  16. term.clear()
  17. print("What Would You Like To Say?")
  18. t = read()
  19. monitor.write(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement