mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
csi: implement 'civis' (show/hide cursor)
This commit is contained in:
parent
a7a28ff581
commit
5e8c75aa38
3 changed files with 5 additions and 3 deletions
3
main.c
3
main.c
|
|
@ -134,7 +134,8 @@ grid_render_update(struct context *c, struct buffer *buf, const struct damage *d
|
|||
|
||||
/* Cursor here? */
|
||||
bool has_cursor
|
||||
= c->term.cursor.linear == linear_cursor - c->term.grid->offset;
|
||||
= (!c->term.hide_cursor &&
|
||||
(c->term.cursor.linear == linear_cursor - c->term.grid->offset));
|
||||
|
||||
int x = col * c->term.cell_width;
|
||||
int y = row * c->term.cell_height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue