Posted 05 August 2017 - 06:43 PM
I use buffers in some programms, but i don't know if this is the best method. Here is the code:
local buffer = window.create(term.current(), 1, 1, w, h)
while true do
term.redirect(buffer)
buffer.setVisible(false)
term.clear()
draw_things()
buffer.redraw()
buffer.setVisible(true)
term.redirect(term.native())
end
better script?
local buffer = window.create(term.current(), 1, 1, w, h)
while true do
term.redirect(buffer)
buffer.setVisible(false)
buffer.repositon(far_away_x, far_away_y)
term.clear()
draw_things()
buffer.repositon(1, 1)
buffer.redraw()
buffer.setVisible(true) -- i think i can remove this if i dont see the far_away window
term.redirect(term.native())
end
Edited on 06 August 2017 - 04:18 AM