Advertisement
Guest User

init.lua

a guest
Feb 13th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. component.getPrimary = function(c) return component.proxy(component.list(c)()) end
  2.  
  3. local gpu = component.getPrimary("gpu")
  4.  
  5. gpu.set(1, 1, "dong")
  6. local w, h = gpu.getResolution()
  7.  
  8. function print(text)
  9.   gpu.copy(1, 2, w, h-1, 0, -1)
  10.   gpu.fill(1, h, w, 1, " ")
  11.   gpu.set(1, h, tostring(text))
  12. end
  13.  
  14. while true do
  15.   computer.pullSignal(1)
  16.   print(computer.uptime())
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement