diff options
| author | Gerd Möllmann | 2025-02-16 17:27:58 +0100 |
|---|---|---|
| committer | Gerd Möllmann | 2025-02-18 05:05:39 +0100 |
| commit | a51cfbbd15889ce2af59b0b1bffac8735f70f6b9 (patch) | |
| tree | c03a9ee6bf2297bc1b3f467540174f158a2232ab /src | |
| parent | df93e53a1c648654d8b128a5955bb4ff0229b041 (diff) | |
| download | emacs-a51cfbbd15889ce2af59b0b1bffac8735f70f6b9.tar.gz emacs-a51cfbbd15889ce2af59b0b1bffac8735f70f6b9.zip | |
Hide cursor based on tty frame's `cursor-type'
* src/dispnew.c (terminal_cursor_magic): if selected-frame has
`(cursor-type . nil)' parameter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index bb480f88537..c222e721077 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -3969,6 +3969,14 @@ terminal_cursor_magic (struct frame *root, struct frame *topmost_child) | |||
| 3969 | tty_hide_cursor (FRAME_TTY (root)); | 3969 | tty_hide_cursor (FRAME_TTY (root)); |
| 3970 | } | 3970 | } |
| 3971 | } | 3971 | } |
| 3972 | |||
| 3973 | /* Hide cursor if selected frame has (cursor-type . nil). */ | ||
| 3974 | { | ||
| 3975 | struct frame *sf = SELECTED_FRAME (); | ||
| 3976 | Lisp_Object cursor = assq_no_quit (Qcursor_type, sf->param_alist); | ||
| 3977 | if (CONSP (cursor) && NILP (XCDR (cursor))) | ||
| 3978 | tty_hide_cursor (FRAME_TTY (root)); | ||
| 3979 | } | ||
| 3972 | } | 3980 | } |
| 3973 | 3981 | ||
| 3974 | void | 3982 | void |