bit of everything

This commit is contained in:
kepler155c@gmail.com
2017-07-23 22:37:07 -04:00
parent 027f386ed1
commit f8bcf90a6b
30 changed files with 866 additions and 502 deletions

View File

@@ -1,5 +1,5 @@
require = requireInjector(getfenv(1))
local process = require('process')
local Event = require('event')
local Socket = require('socket')
local Terminal = require('terminal')
@@ -36,7 +36,7 @@ socket:write({
isColor = ct.isColor(),
})
process:newThread('telnet_read', function()
Event.addRoutine(function()
while true do
local data = socket:read()
if not data then
@@ -57,7 +57,7 @@ local filter = Util.transpose({
})
while true do
local e = { process:pullEvent() }
local e = Event.pullEvent()
local event = e[1]
if not socket.connected then