man terminfo (5) does not mention /etc/terminfo or /lib/terminfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncurses (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
12.04.1 LTS man terminfo (5) says:
Fetching Compiled Descriptions
If the environment variable TERMINFO is set, it is interpreted as the
pathname of a directory containing the compiled description you are
working on. Only that directory is searched.
If TERMINFO is not set, the ncurses version of the terminfo reader code
will instead look in the directory $HOME/.terminfo for a compiled
description. If it fails to find one there, and the environment vari-
able TERMINFO_DIRS is set, it will interpret the contents of that vari-
able as a list of colon- separated directories to be searched (an empty
entry is interpreted as a command to search /usr/share/
no description is found in any of the TERMINFO_DIRS directories, the
fetch fails.
If neither TERMINFO nor TERMINFO_DIRS is set, the last place tried will
be the system terminfo directory, /usr/share/
It doesn't mention /etc/terminfo or /lib/terminfo.
Thankfully I ran across command 'ncurses5-config --terminfo-dirs' which shows:
/etc/terminfo:
or I would not have found /etc/terminfo/
This directory is for system-local terminfo descriptions. By default,
ncurses will search ${HOME}/.terminfo first, then /etc/terminfo (this
directory), then /lib/terminfo, and last not least /usr/share/
# dpkg-query -S /usr/share/
ncurses-bin: /usr/share/
root@ausyvutims
# apt-cache policy ncurses-bin
ncurses-bin:
Installed: 5.9-4
Candidate: 5.9-4
Version table:
*** 5.9-4 0
500 http://
100 /var/lib/
affects: | nfs-utils (Ubuntu) → ncurses (Ubuntu) |
That's a Debian-specific customization, as discussed in bugs.debian. org/cgi- bin/bugreport. cgi?bug= 647323
http://