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

[BUG] Lag while in tmux via ssh #27

Open
funnell opened this issue Jan 11, 2023 · 2 comments
Open

[BUG] Lag while in tmux via ssh #27

funnell opened this issue Jan 11, 2023 · 2 comments
Assignees

Comments

@funnell
Copy link

funnell commented Jan 11, 2023

Describe the bug
When I copy text in emacs while in a tmux session on a remote machine connected via ssh, there is a ~2 second lag.
If I'm doing this outside of tmux, but still on the same remote machine, there is no lag at all.

To Reproduce
ssh to remote server
start or attach to existing tmux session
open file with text in emacs
copy text (try to move cursor while this is happening to notice lag)

** System Info (please complete the following information):**

  • OS: Linux
  • Emacs Version: 28.2
  • Terminal program: iTerm2
  • Any terminal multiplexers in play: Tmux
  • Local or remote (over SSH): remote over SSH

Additional context
This may have nothing to do with Clipetty, and if so then please forgive me. However, I'm hoping someone might have some advice 😄 Thanks for the help and wonderful package!

@funnell
Copy link
Author

funnell commented Jan 31, 2023

The delay comes from the invocation of shell-command-to-string here:

(let ((tmux-ssh-tty (shell-command-to-string clipetty-tmux-ssh-tty)))

Possibly due to executing my shell's config file each time

@funnell
Copy link
Author

funnell commented Feb 1, 2023

This is a related issue bbatsov/projectile#1044

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