utf8 = require 'utf8'
-- Model
local con = {
text = {''},
w = 0, h = 0,
cw = 0, ch = 0,
oy = 0, th = 0,
usebs = true,
}
local m = {
'events', -- REQUIRED!
'loop',
'resize', 'type', 'get',
for _, v in pairs(m) do
require('src.term.'.. v)(con)
end
con:emit('init')
return con