gocui: [BUG] Mouse handling delayed in neovim terminal

Describe the bug Mouse clicks inside neovim terminal are delayed until the next system event. Mouse handling works fine with jroimartin/gocui

To Reproduce Steps to reproduce the behavior:

  1. Open nvim
  2. Open the nvim terminal with :term
  3. Run a gocui project that uses the MouseLeft keybinding
  4. Notice that nothing happened
  5. Press a random key on the keyboard
  6. Notice that the mouse press is now detected

Expected behavior The mouse click should be detected immediately

Environment (please complete the following information):

  • OS: macOS catalina
  • nvim 0.5

Context

  • Calling g.Update does not help
  • MouseRelease is trigged (although not on release)`

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

@dankox Just tried out the _demos/mouse.go and now i see the problem the issue describes also on linux with neovim v0.6.0