JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
htmlterm: redraw on init
authorJason Woofenden <jason@jasonwoof.com>
Wed, 10 Apr 2013 12:32:56 +0000 (08:32 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 10 Apr 2013 12:32:56 +0000 (08:32 -0400)
htmlterm.coffee
server.coffee

index 829f757..fd4ad55 100644 (file)
@@ -60,6 +60,7 @@ class HTMLTerminal
                ]
 
                @parent_element.css backgroundColor: "##{@palette[0]}", color: "##{@palette[7]}"
                ]
 
                @parent_element.css backgroundColor: "##{@palette[0]}", color: "##{@palette[7]}"
+               @redraw()
 
        color_to_css: (i) ->
                # handle inverse bit
 
        color_to_css: (i) ->
                # handle inverse bit
@@ -90,7 +91,6 @@ class HTMLTerminal
                return $('<span style="'+css+'"></span>').text(txt)
 
        redraw_now: ->
                return $('<span style="'+css+'"></span>').text(txt)
 
        redraw_now: ->
-               console.log('redraw_now')
                @parent_element.empty()
                # cursor can be just off the right side, but we draw it on the last column in that case
                if @term.x >= @term.width
                @parent_element.empty()
                # cursor can be just off the right side, but we draw it on the last column in that case
                if @term.x >= @term.width
@@ -119,7 +119,6 @@ class HTMLTerminal
 
        # limit to 50fps
        redraw: ->
 
        # limit to 50fps
        redraw: ->
-               console.log('redraw')
                if (@redraw_wait)
                        @redraw_again = true
                else
                if (@redraw_wait)
                        @redraw_again = true
                else
index 5a20e97..2d008a5 100644 (file)
@@ -1,5 +1,5 @@
 # SETTINGS
 # SETTINGS
-term_lines = 32
+term_lines = 34
 term_columns = 104
 http_port = 2218
 
 term_columns = 104
 http_port = 2218