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

Can only select text with a right click and cannot drag mouse to select on demand #179

Open
LaurentDumont opened this issue May 10, 2022 · 1 comment
Labels
Bug Something isn't working

Comments

@LaurentDumont
Copy link

Describe the bug
Cannot highlight text with mouse in terminal.

To Reproduce
Steps to reproduce the behavior:

  1. Render py-cui panels
  2. Try to select a portion of text with left mouse button
  3. You cannot select the text for copy

Expected behavior
Should be able to select text by dragging the mouse

Environment:

  • OS: Mac Monterey
  • Terminal: iterm
  • Version: 0.1.4

I am not sure if this is actually a bug but it seems a bit strange that I cannot select the rendered text like a normal terminal. 🤔

@LaurentDumont LaurentDumont added the Bug Something isn't working label May 10, 2022
@jwlodek
Copy link
Owner

jwlodek commented May 10, 2022

I think this is a side effect of how py_cui currently handles mouse events, since it captures mouse presses/holds etc. We might need a function to override this behavior. Something like allow_highlighting maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants