diff options
author | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-11-03 13:37:17 +0000 |
commit | 57100376cc70739f53a1f8a4bacf192b8cdcd124 (patch) | |
tree | ba38ff2eea97bea502e9005ed529616008ab4d9e /options-table.c | |
parent | 200b6536e13b41a6fed72c0ca4f364f270bfe382 (diff) | |
download | rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.tar.gz rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.tar.bz2 rtmux-57100376cc70739f53a1f8a4bacf192b8cdcd124.zip |
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index d23f7d57..bad22bfb 100644 --- a/options-table.c +++ b/options-table.c @@ -57,6 +57,10 @@ static const char *options_table_bell_action_list[] = { static const char *options_table_visual_bell_list[] = { "off", "on", "both", NULL }; +static const char *options_table_cursor_style_list[] = { + "default", "blinking-block", "block", "blinking-underline", "underline", + "blinking-bar", "bar", NULL +}; static const char *options_table_pane_status_list[] = { "off", "top", "bottom", NULL }; @@ -243,6 +247,14 @@ const struct options_table_entry options_table[] = { .text = "Colour of the cursor." }, + { .name = "cursor-style", + .type = OPTIONS_TABLE_CHOICE, + .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, + .choices = options_table_cursor_style_list, + .default_num = 0, + .text = "Style of the cursor." + }, + { .name = "default-terminal", .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_SERVER, |