ClientOS/installer/makebig.lua
2025-10-20 00:19:13 +02:00

19 lines
539 B
Lua

function wordwrap(str)
local x,y = term.getCursorPos()
local tW,tH = term.getSize()
for w in str:gmatch("%S+") do
local x1,y1 = term.getCursorPos()
if x1+(#w*3) >= tW then
bigfont.bigPrint(" ")
local x2,y2 = term.getCursorPos()
term.setCursorPos(x,y2)
end
bigfont.bigWrite(w.." ")
end
end
function self.render()
term.setCursorPos(self.x1,self.y1)
term.setBackgroundColor(colors.cyan)
term.setTextColor(self.txtcolor)
wordwrap(self.txt)
end