General fixes of stuff.

This commit is contained in:
Izaya 2017-05-16 02:36:16 +10:00
parent 1b49166cdc
commit 936712b609
2 changed files with 2 additions and 2 deletions

View File

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

View File

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