From a259eda5358b4fdb788b6fcf0f8e1482a5387d77 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 30 Jun 2020 17:45:34 +0200 Subject: 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. --- config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 0d0b8cca..bf539442 100644 --- a/config.c +++ b/config.c @@ -363,6 +363,9 @@ parse_section_cursor(const char *key, const char *value, struct config *conf, } } + else if (strcmp(key, "blink") == 0) + conf->cursor.blink = str_to_bool(value); + else if (strcmp(key, "color") == 0) { char *value_copy = strdup(value); const char *text = strtok(value_copy, " "); @@ -873,6 +876,7 @@ config_load(struct config *conf, const char *conf_path) .cursor = { .style = CURSOR_BLOCK, + .blink = false, .color = { .text = 0, .cursor = 0, -- cgit v1.3