                 )
         else
             # TODO:  *leak!!* these should be deleted when the terminal is closed
-
             $(document).on 'mousedown', (e) =>
                 t = $(e.target)
                 if t.hasParent($(@terminal.element)).length > 0

            e.find(".salvus-console-cursor-focus").removeClass("salvus-console-cursor-focus").addClass("salvus-console-cursor-blur")

    focus: () =>
        focused_console = @

        $(@terminal.element).focus()
        if not @_character_height?

client_keydown = (ev) ->
    focused_console?.client_keydown(ev)


class Console extends EventEmitter
    constructor: (opts={}) ->
        @opts = defaults opts,
