瀏覽代碼

removed dprint statements from nvt

pull/1/head
XeonSquared 4 年之前
父節點
當前提交
583b300720
共有 1 個檔案被更改,包括 0 行新增7 行删除
  1. +0
    -7
      module/nvt100.lua

+ 0
- 7
module/nvt100.lua 查看文件

@@ -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


Loading…
取消
儲存