I've got a step further:
local component = require("component")
local internet = require("internet")
local term = require("term")
local text = require("text")
local event = require("event")
local host = "gcomm.com:23"
local gpu = component.gpu
local w, h = gpu.getResolution()
local hist = {}
local sock, reason = internet.open(host)
if not sock then
io.stderr:write(reason .. "\n")
return
end
sock:setTimeout(0.05)
--Function from the built in IRC program
local function print(message, overwrite)
local w, h = component.gpu.getResolution()
local line
repeat
line, message = text.wra