-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: add intentional switch fallthrough for tmux #14
Conversation
Ah, looks like this is intentional, per a27db48 |
Thank you for your pull request, but I'm not entirely sure what you want me to do here On one hand, as you have mentioned, tmux overrides the On the other hand, I feel like doing this might not be the best idea. Say, someone is using tmux but on an unsupported terminal, and since we are only checking (in this PR) whether Moreover, the There does not seem to be a lot of options to rectify this issue, unless we could somehow get the underlying terminal name from some other variable. Apparently, the person who created that issue on the tmux repo seems to have found out a workaround by executing I will wait until you have any comments to add, or alternative implementations to contribute, otherwise I think I will close this PR |
Hey there, the argument that the tmux maintainer makes in the linked issue is that tmux should itself be considered a terminal, which I don't really agree with, but that's neither here nor there. the change i've made here, is if the happy to take feedback to modify the changes :) |
I'd like to add another (empirical) datapoint, I am running tmux on ghostty (osX/arm64) and running an app with termlink (even the most basic one in the README, with the latest version of the lib) does not work even with |
Hello Apologies for the long wait, I have been rather busy as of late. @Mause I was planning to merge your changes, but after reading @thomas-maurice's above comment on how tmux strips hyperlinks for some reason even after trying to enable the Even though I'm primarly a Windows user and I have never used tmux before, I can already see this is a challenge we would need to figure out in the future. I, too, disagree with the fact that the tmux developers consider tmux to be a terminal. Perhaps we can hope tmux improves the developer experience in the future. Moreover, I would like to investigate why exactly tmux isn't forcing hyperlinks and why it is stripping them. This appears to be quite unsettling, as this goes against the very structure of any terminal, hyperlink supported or not. As of now, I will be closing this pull request. If you have a better way to improve the termlink experience with tmux, please open an issue first so we can discuss this further. I'm open to suggestions. Thank you once again for your contribution. |
Which terminal emulator are you running tmux in though? I'm able to run the example EDIT: additional context, tmux might actually strip these codes after all in some cases, in which case |
See tmux/tmux#3468 for context