Tput选项的完整列表

mtk

我想隐藏光标,并且知道tput命令。我确实搜索了它的手册页。在搜索互联网时,我发现

$ tput civis  # to hide the cursor
$ tput cnorm  # to bring back the cursor

这些可以完美地工作,但是手册页中没有提到这些选项。

他们在哪里正式记录?

芒登

tput命令使用terminfo(from man tput):

tput [-Ttype] capname [parms ... ]

(...)

有关功能及其capname相关功能的完整列表,请参阅terminfo(5)。

(...)

capname
指示terminfo数据库中的功能。编译termcap支持后,该功能的te​​rmcap名称也将被接受。

civiscnorm记录在terminfo的手册页

   cursor_invisible              civis      vi        make cursor invisi‐
                                                      ble
   cursor_normal                 cnorm      ve        make cursor appear
                                                      normal (undo
                                                      civis/cvvis)

通常,当您不知道哪个手册页描述了特定命令时,可以进行搜索。在这种情况下,我通过运行找到了以上内容man -K civis

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章