X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=server.coffee;h=b5a6ad5e4dff09430c44a252bfdb8b24e69be6a8;hb=db9a0f391ba296164d9bc8dba69fcf769aab9052;hp=7adfc690e1474a13f87ae6f01a2aa3a48e25dcb4;hpb=469415c385464dc424c37f4602bf59233bbaa738;p=watch-my-terminal.git diff --git a/server.coffee b/server.coffee index 7adfc69..b5a6ad5 100644 --- a/server.coffee +++ b/server.coffee @@ -36,7 +36,7 @@ fs = require('fs') terminal = require('./terminal.coffee') # SETTINGS -app.listen(9293) +app.listen(2218) term = terminal.new(104, 66) sockets = [] @@ -49,7 +49,7 @@ io.sockets.on 'connection', (socket) -> sockets.splice i, 1 return - socket.emit 'init', width: term.width, height: term.height, x: term.x, y: term.y, a: term.a, text: term.text, attributes: term.attributes, cursor_visible: term.cursor_visible + socket.emit 'init', width: term.width, height: term.height, x: term.x, y: term.y, a: term.a, text: term.text, attributes: term.attributes, cursor_visible: term.cursor_visible, scroll_top: term.scroll_top, scroll_bottom: term.scroll_bottom process.stdin.resume() process.stdin.setEncoding 'utf8'