Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for mouse events not working when using applications from PuTTY terminal #477

Merged

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.

None yet

3 participants