tput 选项的完整列表

mtk*_*mtk 14 man documentation tput

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

$ tput civis  # to hide the cursor
$ tput cnorm  # to bring back the cursor
Run Code Online (Sandbox Code Playgroud)

这些工作完美,但这些选项在手册页的任何地方都没有提到。

他们在哪里正式记录?

ter*_*don 10

tput命令使用terminfo(来自man tput):

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

(…)

有关功能的完整列表以及capname与每个功能相关联的列表,请参阅 terminfo(5)。

(…)

capname
表示来自 terminfo 数据库的能力。编译 termcap 支持时,也接受功能的 termcap 名称。

civiscnorm记录在terminfo的手册页

   cursor_invisible              civis      vi        make cursor invisi?
                                                      ble
   cursor_normal                 cnorm      ve        make cursor appear
                                                      normal (undo
                                                      civis/cvvis)
Run Code Online (Sandbox Code Playgroud)

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