Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function write(monitorPos,Cpos1,Cpos2,textSize,text,color,clear)
- local m = peripheral.wrap(tostring(monitorPos));
- if clear == "true" then
- m.clear()
- end
- m.setCursorPos(tonumber(Cpos1),tonumber(Cpos2))
- m.setTextScale(tonumber(textSize))
- m.setTextColour(colors[color]);
- m.write(text);
- end
- return{
- write = write,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement