socket.on 'init', (v) ->
term = terminal.new(v.width, v.height)
- term.x = v.x
- term.y = v.y
- term.a = v.a
- term.text = v.text
- term.attributes = v.attributes
- term.cursor_visible = v.cursor_visible
- term.scroll_top = v.scroll_top
- term.scroll_bottom = v.scroll_bottom
- redraw()
+ update v.text