从源代码构建ncurses时如何为terminfo数据库设置自定义搜索路径 [英] How to set custom search paths for the terminfo database when building ncurses from source
问题描述
从源代码构建ncurses时,如何为terminfo数据库设置自定义搜索路径?
How do I set custom search paths for the terminfo database when building ncurses from source?
更具体地说,如何强制在〜/.terminfo"中搜索主目录?
To be more specific, how do I force the primary directory to be searched in '~/.terminfo'?
推荐答案
来自 terminfo联机帮助页:
获取编译的描述 如果设置了环境变量TERMINFO,则将其解释为 包含您正在编译的描述的目录的路径名 正在努力.仅搜索该目录.
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.
您可能需要查阅手册页以获取有关如何编译terminfo文件的信息.
You may need to consult the manpage for information on how to compile the terminfo file.
我希望这会有所帮助.
这篇关于从源代码构建ncurses时如何为terminfo数据库设置自定义搜索路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!