aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-03-18 08:46:15 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-03-18 09:29:43 +0000
commitb75fb12b6827e306936b338f06ddb906fd383f42 (patch)
tree60d9bbcf4d2ab8e0a3d95bcb4e8dcb60a622e249
parent53844d3ea4aa504c37c8bd679cfea9966ade1400 (diff)
downloadsrc-b75fb12b6827.tar.gz
src-b75fb12b6827.zip
terminfo: add more path to lookup for the database
In preparation for the move of the database out of base, add one more path to lookup Now the default lookup path is 1. base 2. localbase 3. localbase special site for custom terminfo (for ports adding custom terminfo and avoid potential collision with the general db) 4. termcap The plan is to allow the terminfo-db to be installed by end users via a package for people willing to have the support for features from this database provides. And keep the fallback on termcap for people who don't want to hear about the terminfo db or how to configure the terminal if it uses by default the features proposed in the definitions of the terminfo db. the first look up path is a window open for a proposal made by glebius@ consisting on creating a tool where the user at install time will select the feature it want for a given terminal and generate its configurations based on that. I won't work on it, but it is now posssible and there is a path where to store those definitions
-rw-r--r--lib/ncurses/ncurses/ncurses_cfg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ncurses/ncurses/ncurses_cfg.h b/lib/ncurses/ncurses/ncurses_cfg.h
index 2217eabd3580..259d5c656af7 100644
--- a/lib/ncurses/ncurses/ncurses_cfg.h
+++ b/lib/ncurses/ncurses/ncurses_cfg.h
@@ -65,7 +65,7 @@
#ifdef __FreeBSD__
#define USE_SYSMOUSE 1
#endif
-#define TERMINFO_DIRS "/usr/share/terminfo:/usr/local/share/site-terminfo"
+#define TERMINFO_DIRS "/usr/share/terminfo:/usr/local/share/terminfo:/usr/local/share/site-terminfo"
#define TERMINFO "/usr/share/terminfo"
#define HAVE_BIG_CORE 1
#define TERMPATH "/etc/termcap:/usr/share/misc/termcap"