diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-08-02 14:01:09 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-08-02 14:01:09 +0100 |
commit | 7b8ececd8d76131b29273d62174c70a08211acfc (patch) | |
tree | 8b5dd8c840e6baec075d55208b8b1182ea1c4ddf /options-table.c | |
parent | 9a2fdf8fd45fd156590ac3eabc7baad866fd06df (diff) | |
parent | 42ba6c1b229c92256274e848e9c5ff1d59d9081b (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/options-table.c b/options-table.c index b442d65e..f7e91da1 100644 --- a/options-table.c +++ b/options-table.c @@ -87,6 +87,9 @@ static const char *options_table_detach_on_destroy_list[] = { static const char *options_table_extended_keys_list[] = { "off", "on", "always", NULL }; +static const char *options_table_allow_passthrough_list[] = { + "off", "on", "all", NULL +}; /* Status line format. */ #define OPTIONS_TABLE_STATUS_FORMAT1 \ @@ -803,11 +806,14 @@ const struct options_table_entry options_table[] = { }, { .name = "allow-passthrough", - .type = OPTIONS_TABLE_FLAG, + .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, + .choices = options_table_allow_passthrough_list, .default_num = 0, .text = "Whether applications are allowed to use the escape sequence " - "to bypass tmux." + "to bypass tmux. Can be 'off' (disallowed), 'on' (allowed " + "if the pane is visible), or 'all' (allowed even if the pane " + "is invisible)." }, { .name = "allow-rename", |