-
Notifications
You must be signed in to change notification settings - Fork 93
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
focus-events on
is messy with fish shell
#20
Comments
Curious.....is there any reason not to turn off focus_events when exiting tmux for everyone regardless of shell? |
Also, I'm somewhat new to tmux. Is there a way to perform tasks or set configuration options either A) based on terminal or B) on detach? |
Hey thanks for checking this issue out.
Hm.. I'm not sure I understand this.. I thought focus events (the special sequence of charaters like |
I checked tmux source (not that I understand it, or even know C language for that matter), but it seems the "theory" from the above post might be true. Here's the link to relevant lines in tmux source. So it seems tmux is first doing some checks and then sends the So yea, long story short, at first sight I'd say pane events should not happen outside tmux. Are you seing something else when using fish shell?
I'm not sure you could do this in your |
Update: I keep accidentally posting messages before I finish them.. sorry for the noise. You should be able to check which terminal is tmux running in tmux sensible file by just testing the |
Yeah. The issue is that I start tmux, then either exit or disconnect and the focus events being sent show up on the prompt since tmux is no longer there listening for them. It's entirely possible that these same keystrokes are being sent to bash and just ignored. I'd say this seems more like a tmux issue than a tmux-sensible one. |
Yea. And that would explain it why the My knowledge on this is fuzzy, but I think these events are somewhat standardized to these codes |
That's a very good point. |
I opened this ticket with the fish shell dev team: fish-shell/fish-shell#1917 I'm interested to see where the discussion goes and if the fish devs agree that it should be solved there. |
It seems fish maintainers opened an issue to tmux core and the fix was found: http://sourceforge.net/p/tmux/tickets/176/ Good to see things getting better. Thanks for taking the time to investigate and report this in the first place @baroldgene. |
Thanks for helping me track this one down! 👍 |
Issue from stack overflow: http://stackoverflow.com/questions/28039788/window-focus-adds-characters-to-shell
The text was updated successfully, but these errors were encountered: