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

Paste with middle button when grabbed sends escape codes #3902

Closed
trygveaa opened this issue Aug 4, 2021 · 0 comments
Closed

Paste with middle button when grabbed sends escape codes #3902

trygveaa opened this issue Aug 4, 2021 · 0 comments
Labels

Comments

@trygveaa
Copy link
Sponsor Contributor

trygveaa commented Aug 4, 2021

Describe the bug
After the new mouse actions in 0.21.0, shift+middle click in an application that has grabbed the mouse doesn't just result in the primary selection being pasted, some escape codes are also sent. This breaks pasting in WeeChat when mouse is enabled.

To Reproduce
Steps to reproduce the behavior:

  1. Grab the mouse, e.g. printf "\033[?1006h\033[?1002h" && cat
  2. Press shift+middle button
  3. Observe what's printed to the terminal.

If e.g. the primary selection is test, this is printed to the terminal (depending on mouse position): ^[[<5;1;1Mtest.

I expect only test to be printed.

Environment details

kitty 0.22.2 created by Kovid Goyal
Linux elaine 5.12.15-arch1-1 #1 SMP PREEMPT Wed, 07 Jul 2021 23:35:29 +0000 x86_64
Arch Linux \r (\l)
Running under:Wayland

Config options different from defaults:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant