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

ZSH: Text selection with a mouse not possbile in Windows Terminal SSH session #2641

Open
SSvilen opened this issue Mar 22, 2024 · 4 comments

Comments

@SSvilen
Copy link
Sponsor

SSvilen commented Mar 22, 2024




Describe the bug
I use Windows Terminal and then go to a Ubuntu jump station via SSH and there I start zsh and afterwards k9s.
If I try to select a text with the mouse, it does not work.
If I use bash, it works.
Uusing MobaXterm it works with both zsh and bash..So it has to do something with Windows Terminal
The last version where it worked properly was 0.29.1

To Reproduce
Steps to reproduce the behavior:

Try to select any text with the mouse.

Screenshots
This is how the normal behavior looks like:

windows.mp4

This is how it looks like in ssh+zsh in windows terminal:

ssh.mp4

Versions (please complete the following information):

  • OS: [windows 11 + ssh in windows terminal to ubuntu 20.04 + zsh 5.8]
  • K9s: [0.32.4]
@vlada-dudr
Copy link

You likely have badly setup zsh, so it enables mouse, but doesn't reset before executing commands. When mouse is enabled, terminals usually don't highlight, but send the events to program. Try fixing your zsh setup and meanwhile try holding shift when selecting.

@SSvilen
Copy link
Sponsor Author

SSvilen commented Apr 8, 2024

@vlada-dudr
This problem came up only with the newer version of k9s and it happens only with Windows Terminal.
Holding shift does help though.

@vlada-dudr
Copy link

Try to disable mouse reporting with

echo -e "\e[?1000l"

Before launching k9s.

@SSvilen
Copy link
Sponsor Author

SSvilen commented Apr 9, 2024

No luck.

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

No branches or pull requests

2 participants