diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-21 09:32:48 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-21 09:32:48 +0100 |
commit | 8363c6af2e71cd99e6574e82f80bdb66973f0bd3 (patch) | |
tree | 51677157d6f6e5abca67242773d7c5ced6a8c761 /options-table.c | |
parent | 6c2bf0e22119804022c8038563b9865999f5a026 (diff) | |
download | rtmux-8363c6af2e71cd99e6574e82f80bdb66973f0bd3.tar.gz rtmux-8363c6af2e71cd99e6574e82f80bdb66973f0bd3.tar.bz2 rtmux-8363c6af2e71cd99e6574e82f80bdb66973f0bd3.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 b185969c..8264d1b7 100644 --- a/options-table.c +++ b/options-table.c @@ -74,6 +74,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 \ @@ -266,8 +269,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." |