mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -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
6
config.h
6
config.h
|
|
@ -28,6 +28,11 @@ struct font_size_adjustment {
|
|||
};
|
||||
|
||||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM };
|
||||
enum cursor_unfocused_style {
|
||||
CURSOR_UNFOCUSED_UNCHANGED,
|
||||
CURSOR_UNFOCUSED_HOLLOW,
|
||||
CURSOR_UNFOCUSED_NONE
|
||||
};
|
||||
|
||||
enum conf_size_type {CONF_SIZE_PX, CONF_SIZE_CELLS};
|
||||
|
||||
|
|
@ -256,6 +261,7 @@ struct config {
|
|||
|
||||
struct {
|
||||
enum cursor_style style;
|
||||
enum cursor_unfocused_style unfocused_style;
|
||||
bool blink;
|
||||
struct {
|
||||
uint32_t text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue