diff --git a/module/vt100.lua b/module/vt100.lua index b7ef1a8..3522fdc 100644 --- a/module/vt100.lua +++ b/module/vt100.lua @@ -61,16 +61,16 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function cx, cy = tonumber(tx), tonumber(ty) mode = "n" elseif cc == "A" then -- cursor up - cy = cy - tonumber(cs) or 1 + cy = cy - (tonumber(cs) or 1) mode = "n" elseif cc == "B" then -- cursor down - cy = cy + tonumber(cs) or 1 + cy = cy + (tonumber(cs) or 1) mode = "n" elseif cc == "C" then -- cursor right - cx = cx + tonumber(cs) or 1 + cx = cx + (tonumber(cs) or 1) mode = "n" elseif cc == "D" then -- cursor left - cx = cx - tonumber(cs) or 1 + cx = cx - (tonumber(cs) or 1) mode = "n" elseif cc == "h" and lc == "7" then -- enable line wrap lw = true