JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
listen on port 2218
[watch-my-terminal.git] / server.coffee
index 61d3647..b5a6ad5 100644 (file)
@@ -36,8 +36,8 @@ fs = require('fs')
 terminal = require('./terminal.coffee')
 
 # SETTINGS
-app.listen(9293)
-term = terminal.new(105, 66)
+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
+       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'