 
     client_keydown: (ev) =>
         #console.log("client_keydown")
+        @allow_resize = true
 
         if @_ignore
             # no matter what cancel ignore if the user starts typing, since we absolutely must not loose anything they type.

                position : 'relative'
                top      : 0
                width    : "100%"
        @resize()

    refresh: () =>
        @terminal.refresh(0, @opts.rows-1)

        # editor is focused.  This impacts the cursor, and also whether
        # messages such as open_file or open_directory are handled (see @init_mesg).
        @is_focused = false

        @allow_resize = true

        # Create the DOM element that realizes this console, from an HTML template.
        @element = console_template.clone()
