More cleaning.

This commit is contained in:
Izaya 2017-04-23 11:09:44 +10:00
parent 270007e0bf
commit 70ef28be8f
2 changed files with 2 additions and 9 deletions

View File

@ -12,9 +12,9 @@ if gpu and screen then
gp.fill(1, 1, w, h, " ") gp.fill(1, 1, w, h, " ")
end end
local y = 1 local y = 1
function wl(msg) function wl(l)
if gpu and screen and gp then if gpu and screen and gp then
gp.set(1, y, msg) gp.set(1, y, l)
if y == h then if y == h then
gp.copy(1, 2, w, h - 1, 0, -1) gp.copy(1, 2, w, h - 1, 0, -1)
gp.fill(1, h, w, 1, " ") gp.fill(1, h, w, 1, " ")
@ -23,7 +23,6 @@ function wl(msg)
end end
end end
end end
wl("GPU initialized.")
s("display",function(...) s("display",function(...)
while true do while true do
eT = ev eT = ev
@ -35,9 +34,4 @@ s("display",function(...)
coroutine.yield() coroutine.yield()
end end
end) end)
function sbt(line)
gp.set(1,h,tostring(line))
end
push("display","test")
sbt("Test.")
end end

View File

@ -7,7 +7,6 @@ function ns(id,po,msg)
h("sendmsg",id,po,msg) h("sendmsg",id,po,msg)
end end
s("network daemon",function () s("network daemon",function ()
print("Network daemon starting.\nNetwork ID: "..tostring(nID))
while true do while true do
if ev[1] == "sendmsg" then if ev[1] == "sendmsg" then
local eT = ev local eT = ev