X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.coffee;h=e5615afd6781cec5034ac582d7dc3b53cce78cc5;hb=55d03d755b1b783e32faa32bf0a4d59260660184;hp=3cc8c8748fc493f9697eb63416647aec95eb38df;hpb=f864b5a4731e5ab5148b5fe20533e71691cf6955;p=watch-my-terminal.git diff --git a/client.coffee b/client.coffee index 3cc8c87..e5615af 100644 --- a/client.coffee +++ b/client.coffee @@ -58,7 +58,7 @@ $ -> $body = $('body') $body.css backgroundColor: "##{palette[0]}", color: "##{palette[7]}" - socket = io.connect('http://localhost') + socket = io.connect('/') color_to_css = (i) -> # handle inverse bit @@ -141,12 +141,4 @@ $ -> 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