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:
parent
df93e53a1c
commit
a51cfbbd15
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue