Commit 5cc6bf5e authored by Kyle McKay's avatar Kyle McKay 💬

mincurses.c: use cursor_normal to disable cursor_invisible

There are actually three capabilities:

   cursor_invisible
   cursor_normal
   cursor_visible

The "cursor_normal" string disables both "cursor_invisible" and
"cursor_visible".  The actual meaning of "cursor_visible" is to
make the cursor "very visible."

Prefer using "cursor_normal" to disable "cursor_invisible".

Not all terminals have a "cursor_visible" string and it's not the
opposite of "cursor_invisible" anyway.

In the off chance that a terminal description has been created
incorrectly, if "cursor_normal" is not available but "cursor_visible"
is, it will be used instead (just like the previous code did).
Signed-off-by: Kyle McKay's avatarKyle J. McKay <mackyle@gmail.com>
parent c1b092e6
Pipeline #2337 passed with stage
in 31 seconds
......@@ -491,7 +491,10 @@ int min_hidecur(){
}
int min_showcur(){
if(cursor_visible){
if(cursor_normal){
min_putp(cursor_normal);
return 0;
}else if(cursor_visible){
min_putp(cursor_visible);
return 0;
}else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment