diff --git a/modules/applications/shutil.lua b/modules/applications/shutil.lua index a6713d9..0f25ed3 100644 --- a/modules/applications/shutil.lua +++ b/modules/applications/shutil.lua @@ -1,7 +1,7 @@ function ps() for k,v in pairs(tT) do write("pid: "..tostring(k)..", process name: "..tostring(v[1])..", env={") - for l,w in ipairs(v[3]) do write(tostring(l).." = "..tostring(w)..", ") end + for l,w in pairs(v[3]) do write(tostring(l).." = "..tostring(w)..", ") end print("}") end end diff --git a/modules/drivers/tty.lua b/modules/drivers/tty.lua index 62cce56..16a0df2 100644 --- a/modules/drivers/tty.lua +++ b/modules/drivers/tty.lua @@ -10,7 +10,7 @@ function tty(gA,sA,sI,fg,bg) if cx > sx then cx,cy=1,cy+1 end if cx < 1 then cx,cy=1,cy-1 end if cy < 1 then cx,cy=1,1 end - if cy > sy then gP.copy(1,2,sx,sy-1,1,1) gP.fill(1,sx,sy,1," ") cx,cy=1,sy end + if cy > sy then gP.copy(1,2,sx,sy-1,0,-1) gP.fill(1,sy,sx,1," ") cx,cy=1,sy end end local function wl(str) for c in str:gmatch(".") do