config: add cursor.blink-rate option

The default is 500ms, which corresponds to the old, hardcoded default.

Closes #1707
This commit is contained in:
Daniel Eklöf 2024-05-20 09:03:29 +02:00
parent bc193c7be5
commit c4f1380943
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 37 additions and 11 deletions

View file

@ -641,7 +641,8 @@ test_section_cursor(void)
(const char *[]){"unchanged", "hollow", "none"},
(int []){CURSOR_UNFOCUSED_UNCHANGED, CURSOR_UNFOCUSED_HOLLOW, CURSOR_UNFOCUSED_NONE},
(int *)&conf.cursor.unfocused_style);
test_boolean(&ctx, &parse_section_cursor, "blink", &conf.cursor.blink);
test_boolean(&ctx, &parse_section_cursor, "blink", &conf.cursor.blink.enabled);
test_uint32(&ctx, &parse_section_cursor, "blink-rate", &conf.cursor.blink.rate_ms);
test_pt_or_px(&ctx, &parse_section_cursor, "beam-thickness",
&conf.cursor.beam_thickness);
test_pt_or_px(&ctx, &parse_section_cursor, "underline-thickness",