mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
config: add cursor.unfocused-style
This option controls how we render the cursor when the terminal window is unfocused. Possible values are: * hollow: the default, and how we rendered the cursor before this patch. * unchanged: render the cursor exactly the same way as when the window is focused. * none: do not render any cursor at all Closes #1582
This commit is contained in:
parent
9287946b36
commit
e5a2ac4b57
6 changed files with 59 additions and 7 deletions
|
|
@ -635,6 +635,12 @@ test_section_cursor(void)
|
|||
(const char *[]){"block", "beam", "underline"},
|
||||
(int []){CURSOR_BLOCK, CURSOR_BEAM, CURSOR_UNDERLINE},
|
||||
(int *)&conf.cursor.style);
|
||||
test_enum(
|
||||
&ctx, &parse_section_cursor, "unfocused-style",
|
||||
3,
|
||||
(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_pt_or_px(&ctx, &parse_section_cursor, "beam-thickness",
|
||||
&conf.cursor.beam_thickness);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue