tput civis
successfully hides the cursor.
tput cvvis
should unhide it, but it doesn’t.
Any idea what the problem might be?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
In the ncurses terminal database, cvvis is used as documented in the terminfo manual page:
cursor_visible cvvis vs make cursor very
visible
and if there is no difference between normal and very visible, the cvvis capability is usually omitted. The feature is used in curs_set:
The
curs_setroutine sets the cursor state to invisible,
normal, or very visible for visibility equal to0,1, or2
respectively. 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 ascvvis. 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.
Some terminal descriptions may (incorrectly) equate cvvis and cnorm, since some emacs configurations assume that cvvis is always set.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0