X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=server.coffee;fp=server.coffee;h=f1e208ab9d2d2fd418b5f715935eb458309734e0;hp=adf1d557081f6412e261686f6bb9005a1bcef796;hb=5ea471be49d98517725f2017d274c030ac482111;hpb=ad7cec9332dbd79dc819fb3f426182c27e695237 diff --git a/server.coffee b/server.coffee index adf1d55..f1e208a 100644 --- a/server.coffee +++ b/server.coffee @@ -1,3 +1,9 @@ +# 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') @@ -35,9 +41,8 @@ io = require('socket.io').listen(app) 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 = []