1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 12:04:20 -05:00

removed dprint statements from nvt

This commit is contained in:
XeonSquared 2020-04-09 15:50:39 +10:00
parent f5db94e03c
commit 583b300720

View File

@ -27,13 +27,9 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function
end end
local function termwrite(s) local function termwrite(s)
dprint("attempting termwrite")
dprint("writing "..tostring(s))
local wb = "" local wb = ""
local function flushwb() local function flushwb()
dprint("flush")
while wb:len() > 0 do while wb:len() > 0 do
dprint("flushing "..tostring(wb:len()).." chars: "..tostring(wb))
checkCursor() checkCursor()
local wl = wb:sub(1,mx-cx+1) local wl = wb:sub(1,mx-cx+1)
wb = wb:sub(wl:len()+1) wb = wb:sub(wl:len()+1)
@ -62,7 +58,6 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function
end end
elseif mode == 1 then elseif mode == 1 then
if cc == "[" then if cc == "[" then
dprint("entering escape code mode")
mode = 2 mode = 2
else else
mode = 0 mode = 0
@ -72,11 +67,9 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function
cs = cs .. cc cs = cs .. cc
else else
mode = 0 mode = 0
dprint("command: "..tostring(cc))
local tA = {} local tA = {}
for s in cs:gmatch("%d+") do for s in cs:gmatch("%d+") do
tA[#tA+1] = tonumber(s) tA[#tA+1] = tonumber(s)
dprint("arg: "..tostring(s))
end end
if cc == "H" then if cc == "H" then
cx, cy = tA[1] or 1, tA[2] or 1 cx, cy = tA[1] or 1, tA[2] or 1