Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- term.redirect(mon)
- mon.setTextScale(3)
- local w, h = term.getSize()
- local rw, rh = w/2, h/2
- local old = rs.getBundledInput("left")
- term.clear()
- term.setCursorPos((rw - #tostring(old)/2)+1,rh)
- write(old)
- while true do
- local data = rs.getBundledInput("left")
- if(data ~= old)then
- term.clear()
- term.setCursorPos((rw - #tostring(data)/2)+1,rh)
- write(data)
- old = data
- end
- sleep(0)
- end
Add Comment
Please, Sign In to add comment