thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.73k stars 240 forks source link

Can we add an option to change the default TERM env variable? #647

Closed czert closed 5 years ago

czert commented 5 years ago

There are several ways to deal with the "Error opening terminal: xterm-termite" problem, but for me (and, I suspect, others as well) having the TERM variable configurable would be by far the most painless way. It's by no means an ideal solution, but worth its drawbacks when installing terminfo on remote machines is not an option.

I now compile my own build of termite with the value changed, but I'd appreciate not having to do that.

jelly commented 5 years ago

Won't do, read the README. Changing the TERM does not fix your problem you need to install the correct terminfo file.

czert commented 5 years ago

That's my whole point: I don't need the correct terminfo, changing the TERM is good enough for me. On the other hand, installing the terminfo on all the machines I routinely connect to is a no go.

If I submit a PR for this, will you consider it, or should I not bother?

jelly commented 5 years ago

I won't support it, since it will end up causing bugs and scenario's I don't want to support.

czert commented 5 years ago

OK, that I can understand.

Thanks.

bergentroll commented 5 years ago

vte3 xfce4-terminal perfectly uses $TERM == 'xterm-256color'. Termite solution looks like right one, but is really inconvenient when you need to ssh to many hosts, also when some of the hosts are temporary boxes. It is better to have some client-side solution. One ugly solution can be alias ssh='env TERM=xterm-256color ssh'.