Expand colours as formats like styles.

This commit is contained in:
nicm
2026-06-25 16:32:42 +00:00
parent 7c1ef6a387
commit 0d016195ac
9 changed files with 101 additions and 38 deletions

View File

@@ -177,10 +177,11 @@ screen_reset_tabs(struct screen *s)
void
screen_set_default_cursor(struct screen *s, struct options *oo)
{
int c;
struct grid_cell gc;
int c;
c = options_get_number(oo, "cursor-colour");
s->default_ccolour = c;
style_apply(&gc, oo, "cursor-colour", NULL);
s->default_ccolour = gc.fg;
c = options_get_number(oo, "cursor-style");
s->default_mode = 0;