term_hack is only needed in ocvm. also now fastty clears the screen
This commit is contained in:
parent
d8d74fc627
commit
c347f6daa4
@ -1,4 +1,4 @@
|
|||||||
_G.term_hack = true
|
_G.term_hack = false
|
||||||
function tty(gA,sA,sI,mx,my)
|
function tty(gA,sA,sI,mx,my)
|
||||||
spawn("fastty: "..gA:sub(1,8)..","..sA:sub(1,8)..","..sI,function()
|
spawn("fastty: "..gA:sub(1,8)..","..sA:sub(1,8)..","..sI,function()
|
||||||
_G.nlog = ""
|
_G.nlog = ""
|
||||||
@ -9,6 +9,7 @@ function tty(gA,sA,sI,mx,my)
|
|||||||
gpu.bind(sA)
|
gpu.bind(sA)
|
||||||
local sx, sy = gpu.maxResolution()
|
local sx, sy = gpu.maxResolution()
|
||||||
sx, sy = mx or sx, my or sy
|
sx, sy = mx or sx, my or sy
|
||||||
|
gpu.fill(1,1,sx,sy," ")
|
||||||
|
|
||||||
local function wl(s)
|
local function wl(s)
|
||||||
s=tostring(s) or ""
|
s=tostring(s) or ""
|
||||||
|
Loading…
Reference in New Issue
Block a user