diff options
author | nicm <nicm> | 2021-06-10 07:24:10 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-06-10 07:24:10 +0000 |
commit | 64c276c23bd729c03c2a3ff00c6f9e6ac4c644c6 (patch) | |
tree | 7bbcf995a08bacc55c39bae16767684177fc7df5 /options-table.c | |
parent | 1ee231956ca9d1436e101350f4246abc1f157224 (diff) | |
download | rtmux-64c276c23bd729c03c2a3ff00c6f9e6ac4c644c6.tar.gz rtmux-64c276c23bd729c03c2a3ff00c6f9e6ac4c644c6.tar.bz2 rtmux-64c276c23bd729c03c2a3ff00c6f9e6ac4c644c6.zip |
Add an "always" value to the extended-keys option to always forward
these keys to applications inside tmux.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c index 8ea56918..4f4d9ff6 100644 --- a/options-table.c +++ b/options-table.c @@ -75,6 +75,9 @@ static const char *options_table_remain_on_exit_list[] = { static const char *options_table_detach_on_destroy_list[] = { "off", "on", "no-detached", NULL }; +static const char *options_table_extended_keys_list[] = { + "off", "on", "always", NULL +}; /* Status line format. */ #define OPTIONS_TABLE_STATUS_FORMAT1 \ @@ -267,8 +270,9 @@ const struct options_table_entry options_table[] = { }, { .name = "extended-keys", - .type = OPTIONS_TABLE_FLAG, + .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_SERVER, + .choices = options_table_extended_keys_list, .default_num = 0, .text = "Whether to request extended key sequences from terminals " "that support it." |