从源代码构建 ncurses 时,如何为 terminfo 数据库设置自定义搜索路径?
更具体地说,如何强制在“~/.terminfo”中搜索主目录?
最佳答案
在configure
中定义--datadir
标志,例如:
configure --datadir=/usr/customshare
阅读位于 ncurses 文件根目录中的 INSTALL 文件中的注释:
...
The location of the terminfo is set indirectly by the "--datadir" configure option, e.g., /usr/share/terminfo, given a datadir of /usr/share. You may want to override this if you are installing ncurses libraries in nonstandard locations, but wish to share the terminfo database.
...
--with-terminfo-dirs=XXX Specify a search-list of terminfo directories which will be compiled into the ncurses library (default: DATADIR/terminfo)
关于search - 从源代码构建 ncurses 时如何为 terminfo 数据库设置自定义搜索路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7158602/