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

标签 search path ncurses terminfo

从源代码构建 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/

相关文章:

algorithm - 存在的搜索和查询没有大惊小怪

search - 评估搜索引擎 : free alternatives for TREC

c# - 如何获取 notepad.exe 的确切路径以关联文件扩展名

c - 如何使用 ncurses 创建选项按钮

gcc - 如何在 Mac 上使用 Emscripten emcc 和 make 时包含 ncurses

java - 搜索文件中的编码标签

php - 在数据库中搜索整个字符串/短语

python - vscode找不到python的requests库

python - 在 PowerShell 中设置 Python 的路径?

c - C中的Escape键无限循环