diff options
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r-- | usr.bin/tmux/options-table.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index d0511e2f40e..9724fab6eeb 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.153 2021/11/01 09:34:49 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.154 2021/11/03 13:37:17 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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, |