Pinkishu

Untitled

Jun 2nd, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function term.write(msg)
  2.   x,y = term.getCursorPos()
  3.   if y == 1 then
  4.     if x + string.len(msg) <= w+1 then
  5.         --line = string.sub(line,1,x-1) .. msg .. string.sub(line,x+string.len(msg),-1)
  6.         print("NL.")
  7.         print(line)
  8.     end
  9.   end
  10.   return oTerm.write(msg)
  11.  
  12. end
Advertisement
Add Comment
Please, Sign In to add comment