mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
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:
parent
7f65bd1c20
commit
a259eda535
7 changed files with 19 additions and 2 deletions
4
config.c
4
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue