PSk*_*cik 18 terminal escape-characters tput
tput civis
Run Code Online (Sandbox Code Playgroud)
成功隐藏光标。
tput cvvis
Run Code Online (Sandbox Code Playgroud)
应该取消隐藏它,但它没有。
知道可能是什么问题吗?
Tho*_*key 12
在 ncurses终端数据库中,cvvis按照 terminfo 手册页中的说明使用:
cursor_visible cvvis vs make cursor very
visible
Run Code Online (Sandbox Code Playgroud)
如果normal和very visible之间没有区别,cvvis则通常会省略该功能。该功能用于curs_set:
The
curs_setroutine sets the cursor state to invisible, normal, or very visible for visibility equal to0,1, or2respectively. If the terminal supports the visibility re-quested, the previous cursor state is returned; otherwise,ERRis returned.
The terminfo(5) manual page also says
If the cursor needs to be made more visible than normal when it is not on the bottom line (to make, for example, a non-blinking underline into an easier to find block or blinking underline) give this sequence as
cvvis. If there is a way to make the cursor completely invisible, give that ascivis. The capabilitycnormshould be given which undoes the effects of both of these modes.
一些终端描述可(错误地)等号cvvis和cnorm,因为一些emacs的配置假定cvvis是总是设置。
| 归档时间: |
|
| 查看次数: |
11856 次 |
| 最近记录: |