-- First we wrap the monitor peripheral local monitor = peripheral.find("monitor") monitor.setCursorPos(10,10) -- Let's clear the monitor local num = 1 while num < 10000 do monitor.setTextColor(num) num = num + 1 monitor.clear() -- And reset the cursor position monitor.setCursorPos(1,1) -- Then we can write whatever we want monitor.write("Hello, World") end