when '/terminal.js'
filename = __dirname + '/terminal.coffee'
type = 'text/javascript'
+ when '/client.js'
+ filename = __dirname + '/client.coffee'
+ type = 'text/javascript'
else
return reply_err req, res
fs.readFile filename, 'utf8', (err, data) ->
# SETTINGS
app.listen(9293)
-term = terminal.new(105, 66)
+term = terminal.new(104, 66)
sockets = []
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'