diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-08 19:10:09 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-08 19:10:09 +0100 |
commit | a61cbf1c33d8d61b564f95053cbf96443126dd87 (patch) | |
tree | 14ede2310b94ea68fb5c2366e7cbb9798f13ff78 /cmd-show-options.c | |
parent | 708e9bc072eddc2a3d83bc5df45de2825b011ed1 (diff) | |
download | rtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.tar.gz rtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.tar.bz2 rtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.zip |
Add a customize mode where options may be browsed and changed, includes adding
a brief description of each option. Bound to "C" by default.
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r-- | cmd-show-options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c index 1286037c..ed93311a 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -150,7 +150,7 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item, xasprintf(&tmp, "%s[%d]", name, idx); name = tmp; } else { - if (options_isarray(o)) { + if (options_is_array(o)) { a = options_array_first(o); if (a == NULL) { if (!args_has(args, 'v')) @@ -167,10 +167,10 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item, } } - value = options_tostring(o, idx, 0); + value = options_to_string(o, idx, 0); if (args_has(args, 'v')) cmdq_print(item, "%s", value); - else if (options_isstring(o)) { + else if (options_is_string(o)) { escaped = args_escape(value); if (parent) cmdq_print(item, "%s* %s", name, escaped); @@ -228,7 +228,7 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item, int scope, } else parent = 0; - if (!options_isarray(o)) + if (!options_is_array(o)) cmd_show_options_print(self, item, o, -1, parent); else if ((a = options_array_first(o)) == NULL) { if (!args_has(args, 'v')) { |