diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-06-30 15:45:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-06-30 15:45:34 +0000 |
| commit | a259eda5358b4fdb788b6fcf0f8e1482a5387d77 (patch) | |
| tree | a20e1b0f3b1373b51d42d4281898c9ddb5013fcc /config.c | |
| parent | csi: '\E[0 q' resets the cursor style to the default, not '\E[2 q' (diff) | |
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.
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |
