繁体   English   中英

从源代码构建ncurses时,如何为terminfo数据库设置自定义搜索路径

[英]How to set custom search paths for the terminfo database when building ncurses from source

从源代码构建ncurses时,如何为terminfo数据库设置自定义搜索路径?

更具体地说,如何强制在'〜/ .terminfo'中搜索主目录?

terminfo手册页

获取编译的描述如果设置了环境变量TERMINFO,它将被解释为包含您正在处理的已编译描述的目录的路径名。 仅搜索该目录。

  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. 

您可能需要查阅联机帮助页以获取有关如何编译terminfo文件的信息。

我希望这有帮助。

configure定义--datadir标志,如:

configure --datadir=/usr/customshare

阅读位于ncurses文件根目录的INSTALL文件中的注释:

...

在给定/ usr / share的数据对象的情况下,terminfo的位置由“--dadadir”配置选项间接设置,例如/ usr / share / terminfo。 如果要在非标准位置安装ncurses库,但希望共享terminfo数据库,则可能需要覆盖此项。

...

--with-terminfo-dirs = XXX指定将编译到ncurses库中的terminfo目录的搜索列表(默认值:DATADIR / terminfo)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM