+# SETTINGS
+term_lines = 32
+term_columns = 104
+http_port = 2218
+
+
handler = (req, res) ->
reply_err = (req, res, msg) ->
res.writeHead(200, 'Content-Type': 'text/plain')
fs = require('fs')
terminal = require('./terminal.coffee')
-# SETTINGS
-app.listen(2218)
-term = terminal.new(104, 34)
+app.listen(http_port)
+term = terminal.new(term_columns, term_lines)
sockets = []