alacritty: Mouse input doesn't work

Which operating system does the issue occur on? Void Linux

If on linux, are you using X11 or Wayland? X11

Which version of Alacritty? Master (f298ebb2179eff947cdb9cb7a4bd96e9739eac5c)

Applications which accept mouse input either don’t react at all or react in a broken way. For example: Cmus and Ranger; both support mouse input for selecting items in their interfaces but this doesn’t work in a bare Alacritty terminal. However, running tmux inside Alacritty and using any mouse-enabled application through tmux, mouse input works perfectly fine.

It seems Alacritty is sending input, but incorrect input? In Neovim, with mouse input enabled, clicking a line shows 23m in the command window in the bottom right (where “23” corresponds to the line being selected). And does nothing else.

What’s strange is I’ve been using Alacritty for about 3 weeks and I had this problem when I first installed it, but it went away after a few days and I have no idea what changed. Alacritty’s been working fine until a few days ago and, again, I have no idea what changed.

Oh and for comparison, xterm works as expected on my machine (without tmux).

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (15 by maintainers)

Most upvoted comments

In vim 8.1:

if has('mouse')
    set mouse=a
endif

if !has('nvim')
  set ttymouse=xterm2
endif

Problem solved. I needed nightly neovim, or there was an optional dependency left out in my package manager’s version of neovim. 😄

If it’s merged into jwilm/alacritty, then all’s good. 👍

Something on my machine is messing with nvim then.

This issue can be closed when https://github.com/jwilm/alacritty/pull/1141 is pulled. Good work @chrisduerr!

Now everything works for me as well.