JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
init: don't send spaces at end of lines
[watch-my-terminal.git] / client.coffee
index 14e5a6f..e5615af 100644 (file)
@@ -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,10 +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
-               redraw()
+               update v.text