Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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