JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
init: encode terminal state as terminal output
[watch-my-terminal.git] / client.coffee
index 6749a60..e5615af 100644 (file)
@@ -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