-
Notifications
You must be signed in to change notification settings - Fork 67
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
Use TERM_PROGRAM for determining WezTerm terminal #185
Conversation
Thanks 🙏 |
Currently, `TERM` is used, which is not set by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, especially for the rigorous proof reading of the manpage 🙏 Much obliged 🤗
It should fallback to TERM which it now no longer does. The reason why wezterm does not set TERM by default is that it breaks WSL and ssh targets which do not have the terminfo installed and there is no easy way to automatically do it or forward that info. |
Also |
Before changing, I did look at the code, and WezTerm do set [1] https://github.com/wez/wezterm/blob/ac5199c21663e39dcce887308a92b5e36b338866/config/src/lib.rs#L1711 |
That only works if you are opening the shell locally on a Linux machine. Everyone needs to duct tape around this when using WSL or SSH. Just use TERM as a fallback instead of some random other environment variable. |
Forwarding the variable over ssh is not that easy because it needs both changes in the client and server config of ssh. Also I am pretty sure there are pieces of software which will also needs special treatment which is totally unnecessary here. |
@SuperSandro2000 I am sorry but I don't like your tone; please try to be less combative and less passive aggressive. Thanks. mdcat will continue to use I understand that it doesn't work over SSH by default, but neither does TERM without copying terminfo files around. I'd also like to point out that iTerm detection also relies on TERM_PROGRAM only, and so far I haven't received any complaints about this. I am not opposed to checking additional environment variables, but personally I have no need to change this, and please understand that you are not entitled to demand this from @MuhammedZakir. If you need a fallback to TERM please do make a pull request yourself. I'd be happy to review it. Thanks. |
I am doing that right now. |
@SuperSandro2000 Thank you 🙏 |
Currently,
TERM
is used, which is not set by default.Ref: #182 (comment)
Edit: update manpage to mention WezTerm and fix typos.