term_hack is only needed in ocvm. also now fastty clears the screen

This commit is contained in:
Izaya 2017-10-13 04:15:07 +11:00
parent d8d74fc627
commit c347f6daa4
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
_G.term_hack = true
_G.term_hack = false
function tty(gA,sA,sI,mx,my)
spawn("fastty: "..gA:sub(1,8)..","..sA:sub(1,8)..","..sI,function()
_G.nlog = ""
@ -9,6 +9,7 @@ function tty(gA,sA,sI,mx,my)
gpu.bind(sA)
local sx, sy = gpu.maxResolution()
sx, sy = mx or sx, my or sy
gpu.fill(1,1,sx,sy," ")
local function wl(s)
s=tostring(s) or ""