config: add 'blink' option to cursor section in footrc

This option controls whether the default cursor should blink or
not. The default is to *not* blink.
This commit is contained in:
Daniel Eklöf 2020-06-30 17:45:34 +02:00
parent 7f65bd1c20
commit a259eda535
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 19 additions and 2 deletions

View file

@ -844,10 +844,11 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.alpha = conf->colors.alpha,
},
.origin = ORIGIN_ABSOLUTE,
.default_cursor_blink = conf->cursor.blink,
.default_cursor_style = conf->cursor.style,
.cursor_style = conf->cursor.style,
.cursor_blink = {
.active = false,
.active = conf->cursor.blink,
.state = CURSOR_BLINK_ON,
.fd = cursor_blink_fd,
},