diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-04-09 14:28:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-04-10 14:24:10 +0000 |
| commit | e5a2ac4b57c18556e2245ecbf2e4faeef46e2b9d (patch) | |
| tree | d64f53497988042a566985e486d1d8dd2070f186 /tests | |
| parent | dcs: DECRQSS: fix off-by-one when checking for space in the DCS buffer (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-config.c b/tests/test-config.c index b54dd23e..3d4d345c 100644 --- a/tests/test-config.c +++ b/tests/test-config.c @@ -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); |
