【问题标题】:How to set custom search paths for the terminfo database when building ncurses from source从源代码构建 ncurses 时如何为 terminfo 数据库设置自定义搜索路径
【发布时间】:2011-08-23 09:07:35
【问题描述】:

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

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

【问题讨论】:

    标签: search path ncurses terminfo


    【解决方案1】:

    来自terminfo manpage

    获取已编译的描述 如果设置了环境变量 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 文件的信息。

    我希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      configure 中定义--datadir 标志,如:

      configure --datadir=/usr/customshare
      

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

      ...

      terminfo 的位置由“--datadir”间接设置 配置选项,例如 /usr/share/terminfo,给定一个 datadir /usr/共享。如果您正在安装,您可能想要覆盖它 ncurses 库位于非标准位置,但希望共享 terminfo 数据库。

      ...

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-12-10
        • 2017-07-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-03-20
        • 1970-01-01
        • 2016-06-21
        相关资源
        最近更新 更多