config+render: allow cursor.style=hollow

Closes #1965
This commit is contained in:
Daniel Eklöf 2025-02-19 11:44:38 +01:00
parent 101bc28698
commit c41008da31
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 11 additions and 4 deletions

View file

@ -647,6 +647,11 @@ draw_cursor(const struct terminal *term, const struct cell *cell,
draw_underline_cursor(term, pix, font, &cursor_color, x, y, cols);
}
break;
case CURSOR_HOLLOW:
if (likely(term->cursor_blink.state == CURSOR_BLINK_ON))
draw_hollow_block(term, pix, &cursor_color, x, y, cols);
break;
}
}