-
-
Notifications
You must be signed in to change notification settings - Fork 972
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
kitty +kitten ssh inputs commands in shell #5227
Comments
The new version of ssh kitten does not support use in tmux. |
Yeah tmux, the great breaker of everything :) The problem is that in |
Thanks anyway. I will try to knock at TMUX's door since with kitty 0.25.2 and TMUX 3.2a there is no problem. Maybe they can do something on their side :) |
Actually, it might be possible to use tmux passthrough escape codes. Will have to investigate if I can find the time. It will only work if you use the ssh kitten in the currently active tmux pane, but that is the common case. |
The version of tmux in the Ubuntu 20.04 LTS is tmux 3.0, which is outdated. The latest version of tmux at the time of writing is 3.3a. Using the latest version fixes a problem with using kitty's SSH kitten in tmux [0]. [0]: kovidgoyal/kitty#5227
I think I found the fix for this, after a fair bit of experimentation, I found that adding the following line to my
Let me know if this solves it for anyone else. I was digging around the source code and noticed that if I manually set the KITTY_PID env var to the correct PID that it was set to before starting tmux then ssh worked just fine. After more digging through previous commits in the source code I found the following line which was the key to solving this issue: Line 563 in b3fcb53
While this file no longer contains this detail on the latest commits, I think I found the equivalent code in the current source as well: Line 92 in 503d779
Edit: |
Describe the bug
When I use
kitty +kitten ssh
, I get a gibberish of characters being input on the remote shell.To Reproduce
Steps to reproduce the behavior:
kitty +kitten ssh <server>
;Screenshots
Environment details
Additional context
When ran with
kitty --config NONE
, I get the following logs:I use fish shell 3.5.0 and here is the minimal config to reproduce the bug.
I use TMUX 3.3a and the error can be reproduced with an empty
tmux.conf
.I tried running the same script with kitty 0.24.4 and everything is fine. The logs now only contain:
The text was updated successfully, but these errors were encountered: