Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: TERMINFO_DIRS



On Sat, 18 Oct 2025, Thomas Klausner wrote:

Interesting, yes, that works:

export TERMINFO_DIRS=/usr/share/misc/terminfo

However, libterminfo seems to be in conflict with ncurses' variant
here, see e.g. https://linux.die.net/man/5/terminfo which describes
this as a list of directories:
[...]
I don't know if the claim that TERMINFO_DIRS is an ncurses extension
is correct, but if it is, shouldn't NetBSD's implementation be more
compatible here?


Because NetBSD curses uses a _single_ file for its database (and not a bunch
of sub-dirs. and binary files as in ncurses), if TERMINFO_DIRS were treated
as directories, then the filename within those dirs. would have to be same:
terminfo.cdb everywhere, no?

Instead of this, NetBSD's libterminfo treats the list as files. (You can omit
the .cdb from the filenames, but, they should be .cdb files nonetheless.)

-RVP


Home | Main Index | Thread Index | Old Index