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

View File

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