 
       @emit 'input', get_vim_button_name('ScrollWheel' + direction, e) \
         + '<' + cols + ',' + rows + '>'
+
+      if config.blink_cursor
+        pause_blink()
 
   get_color_string: (rgb) ->
     bgr = []

          + ',' + Math.floor(e.clientY / @char_height) \
          + '>'

    document.addEventListener 'mouseup', (e) =>
      return if not @mouse_enabled
      e.preventDefault()

    @cursor.style.height = @char_height + 'px'

    if config.blink_cursor
      @start_cursor_blink()
    else
      @stop_cursor_blink()

  start_cursor_blink: ->
    @cursor.classList.add 'blink'

  stop_cursor_blink: ->
    @cursor.classList.remove 'blink'

  init_event_handlers: ->
    resumeBlink = debounce (=> @start_cursor_blink()), 250
    pause_blink = =>
      @stop_cursor_blink()
      resumeBlink()

    document.addEventListener 'keydown', (e) =>
      keystroke = keystrokeForKeyboardEvent(e)
      @emit 'input', keystroke if keystroke

      if config.blink_cursor
        pause_blink()

    document.addEventListener 'mousedown', (e) =>
      return if not @mouse_enabled
