JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
run.sh: complain if not passed width/height
[watch-my-terminal.git] / client.coffee
1 $ ->
2         terminal_container = $('body')
3         term = null
4         socket = io.connect('/')
5         socket.on 'data', (data) ->
6                 if term?
7                         term.update(data)
8
9         socket.on 'init', (v) ->
10                 term = htmlterm(terminal_container, v.width, v.height)
11                 term.update v.text