             # On first write we ignore any queued terminal attributes responses that result.
             @terminal.queue = ''
             @terminal.showCursor()
-            @_ignore = false
 
         @session.on 'close', () =>
             @_connected = false

        @_needs_resize = false

    full_rerender: =>
        if @_ignore_timeout?
            # don't let pending timeout clear the @_ignore flag.
            clearTimeout(@_ignore_timeout)
        value = @value_orig
        @reset()
        @_ignore = true
        @render(value)
        done = =>
            @_ignore = false
            delete @_ignore_timeout
        # We ignore any data coming out of the terminal for
        # a little while after rerendering, to allow it to fully
        # re-render.  See https://github.com/sagemathinc/cocalc/issues/1269
        @_ignore_timeout = setTimeout(done, 75)

    resize_terminal: () =>
        # Determine size of container DOM.

        @element.find(".webapp-console-submit-line").click () =>
            #@focus()
            submit_line()
            @_ignore = false
            @session?.write_data("\n")
            return false

