Skip to content

Conversation

@ramachandrasuresh
Copy link
Contributor

Issue:
With tcell v2.2.0 and up, mouse events stopped working for PuTTY.

Solution:
When the MouseFlags are not set/present, default the flags to also Include the mouse drag and button events and loop through each mouse event.

Results w/ fix:
Mouse events work for PuTTY and other terminals.

@ramachandrasuresh ramachandrasuresh changed the title Patch for mouse events not working when using applications created using tcell from PuTTY terminal Patch for mouse events not working when using applications from PuTTY terminal Aug 12, 2021
@gdamore
Copy link
Owner

gdamore commented Sep 26, 2021

This looks good, just trying to find my documentation on what 1006 was used for. Stay tuned.

@gdamore
Copy link
Owner

gdamore commented Sep 26, 2021

Found it. Was looking at an older version of the escape sequences doc. (1006 is SGR mode.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants