diff --git a/src/main/resources/assets/opencomputers/loot/openos/bin/edit.lua b/src/main/resources/assets/opencomputers/loot/openos/bin/edit.lua index 8ee9b2a34d..5fe59dc02e 100644 --- a/src/main/resources/assets/opencomputers/loot/openos/bin/edit.lua +++ b/src/main/resources/assets/opencomputers/loot/openos/bin/edit.lua @@ -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 = {} @@ -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)