mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-11 16:28:12 -04:00
Added term.reset(). Closes #1377.
This commit is contained in:
parent
0387264743
commit
84d912cef8
@ -31,6 +31,16 @@ function term.clear()
|
|||||||
cursorX, cursorY = 1, 1
|
cursorX, cursorY = 1, 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function term.reset()
|
||||||
|
if term.isAvailable() then
|
||||||
|
local maxw, maxh = component.gpu.maxResolution()
|
||||||
|
component.gpu.setResolution(maxw, maxh)
|
||||||
|
component.gpu.setBackground(0x000000)
|
||||||
|
component.gpu.setForeground(0xFFFFFF)
|
||||||
|
term.clear()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function term.clearLine()
|
function term.clearLine()
|
||||||
if term.isAvailable() then
|
if term.isAvailable() then
|
||||||
local w = component.gpu.getResolution()
|
local w = component.gpu.getResolution()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user