我想隐藏光标,并且知道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支持后,该功能的termcap名称也将被接受。
在civis
和cnorm
记录在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] 删除。
我来说两句