This is an attempt to collect all issues seen with having our terminfo installed in a non-standard location:
- sudo (#691, #694), doas (#692), ssh (#691) all drop
TERMINFO by default. All can be configured to not do that, but e.g. ssh requires modifying both the client and server configs. Regardless, it's bad user experience
- gpg decrypt fails (#697).
- ncurses can be built with
--disable-root-environ
- Exporting
TERMINFO apparently breaks the netbsd-curses build. Not sure that one can be blamed on us though.
One of the reasons I went with the current approach (installing terminfo to a non-standard location, and setting TERMINFO) was to be able gracefully fallback to the ncurses provided terminfo definitions.
Once ncurses with its new foot terminfo definitions are out, point 1 and 2 in the list will be a smaller problem since then we'll fallback to ncurses.
However, it also means we silently switch to a less capable terminfo.
Thus, the question is, do we wait for ncurses to be released, and have that "fix" these issues (by silently falling back to a less capable terminfo), or do we change foot's default terminfo to something different (e.g. fot - "foot" in Swedish) and install it in the standard location, and stop exporting TERMINFO?
This is an attempt to collect all issues seen with having our terminfo installed in a non-standard location:
1. sudo (https://codeberg.org/dnkl/foot/issues/691, https://codeberg.org/dnkl/foot/issues/694), doas (https://codeberg.org/dnkl/foot/issues/692), ssh (https://codeberg.org/dnkl/foot/issues/691) all drop `TERMINFO` by default. All can be configured to not do that, but e.g. ssh requires modifying both the client and server configs. Regardless, it's bad user experience
1. gpg decrypt fails (https://codeberg.org/dnkl/foot/issues/697).
1. ncurses can be built with `--disable-root-environ`
1. Exporting `TERMINFO` apparently breaks the netbsd-curses build. Not sure that one can be blamed on us though.
One of the reasons I went with the current approach (installing terminfo to a non-standard location, and setting `TERMINFO`) was to be able gracefully fallback to the ncurses provided terminfo definitions.
Once ncurses with its new foot terminfo definitions are out, point 1 and 2 in the list will be a smaller problem since then we'll fallback to ncurses.
However, it also means we silently switch to a less capable terminfo.
Thus, the question is, do we wait for ncurses to be released, and have that "fix" these issues (by silently falling back to a less capable terminfo), or do we change foot's default terminfo to something different (e.g. `fot` - "foot" in Swedish) and install it in the standard location, and stop exporting `TERMINFO`?