X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=server.coffee;h=5d5ca3539148fa7f336b0d1401c4b6df0304b053;hb=f864b5a4731e5ab5148b5fe20533e71691cf6955;hp=d66b6cd1c60b8b8d143903189734f688a3b3b91e;hpb=bd8f5b58663dd5870827c1d0dfa4f8eff8f6a5f0;p=watch-my-terminal.git diff --git a/server.coffee b/server.coffee index d66b6cd..5d5ca35 100644 --- a/server.coffee +++ b/server.coffee @@ -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 + 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'