diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-11-03 13:37:18 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-11-03 13:37:18 +0000 |
commit | 83204005eaf93d13b73cd6b5fc0784b74bbe52cd (patch) | |
tree | f9a55f6eb343937cc8aca42af7fbc94d260695cb /usr.bin/tmux/options-table.c | |
parent | cdfa0d0bbc5bd8c2b782c5ce93fd6ce370bf39c1 (diff) |
Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
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, |