Hide cursor based on tty frame's `cursor-type'

* src/dispnew.c (terminal_cursor_magic): if selected-frame has
`(cursor-type . nil)' parameter.
This commit is contained in:
Gerd Möllmann 2025-02-16 17:27:58 +01:00
parent df93e53a1c
commit a51cfbbd15

View file

@ -3969,6 +3969,14 @@ terminal_cursor_magic (struct frame *root, struct frame *topmost_child)
tty_hide_cursor (FRAME_TTY (root));
}
}
/* Hide cursor if selected frame has (cursor-type . nil). */
{
struct frame *sf = SELECTED_FRAME ();
Lisp_Object cursor = assq_no_quit (Qcursor_type, sf->param_alist);
if (CONSP (cursor) && NILP (XCDR (cursor)))
tty_hide_cursor (FRAME_TTY (root));
}
}
void