И снова здравствуйте, теперь у меня не очищается экран командой "term.clear()"
Из-за чего получаются непредвиденные рисовашки.
Как исправить?
Часть кода:
local com = require("component")
local term = require("term")
local event = require("event")
local colors = require("colors")
local gpu = com.gpu
...
Touch,ScreenX,ScreenY,_,nick = event.pull("touch")
...
if ScreenY>4 and 5<ScreenY then
if ScreenX>31.5 and 48.5<ScreenX then
gpu.setBackground(colors.brown,true)
gpu.setForeground(colors.silver,true)
term.clear()
end
end