mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
for clear line use gpu fill and not set
This commit is contained in:
parent
983185f5f2
commit
7e77662160
@ -47,7 +47,7 @@ local function clear_line(window, _, n)
|
|||||||
n = tonumber(n) or 0
|
n = tonumber(n) or 0
|
||||||
local x = n == 0 and window.x or 1
|
local x = n == 0 and window.x or 1
|
||||||
local rep = n == 1 and window.x or window.width
|
local rep = n == 1 and window.x or window.width
|
||||||
window.gpu.set(x, window.y, (" "):rep(rep))
|
window.gpu.fill(x, window.y, rep, 1, " ")
|
||||||
end
|
end
|
||||||
rules[{"%[", "[012]?", "K"}] = clear_line
|
rules[{"%[", "[012]?", "K"}] = clear_line
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user