Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ elseif not fs.exists(filename) and readonly then
return 1
end

local cursorX,cursorY=term.getCursor()
local resX,resY=gpu.getResolution()
local buff=gpu.allocateBuffer(resX,resY)
gpu.setActiveBuffer(0)
gpu.bitblt(buff,1,1,resX,resY,0,1,1)

local function loadConfig()
-- Try to load user settings.
local env = {}
Expand Down Expand Up @@ -718,5 +724,7 @@ while running do
end
end

term.clear()
gpu.bitblt(0,1,1,resX,resY,buff,1,1)
gpu.freeBuffer(buff)
term.setCursor(cursorX,cursorY)
term.setCursorBlink(true)