diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-01-27 10:01:27 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-01-27 10:01:27 +0000 |
commit | f3ea318a044ed729c7fcf8c1897f0d479f88bdd4 (patch) | |
tree | 4e6568f7fde7ee476ed7a1f2074c36083260cfd0 /cmd-command-prompt.c | |
parent | 0eb7b54731e35180c7569891379bf3626ed35a02 (diff) | |
parent | 2c38e01b548553aa162f9f126147b5ed64fd1700 (diff) | |
download | rtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.tar.gz rtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.tar.bz2 rtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r-- | cmd-command-prompt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 603ddb0a..9f0ea19f 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -40,8 +40,8 @@ const struct cmd_entry cmd_command_prompt_entry = { .name = "command-prompt", .alias = NULL, - .args = { "1iI:Np:t:", 0, 1 }, - .usage = "[-1Ni] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " + .args = { "1kiI:Np:t:", 0, 1 }, + .usage = "[-1kiN] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " "[template]", .flags = 0, @@ -122,6 +122,8 @@ cmd_command_prompt_exec(struct cmd *self, struct cmdq_item *item) cdata->flags |= PROMPT_NUMERIC; else if (args_has(args, 'i')) cdata->flags |= PROMPT_INCREMENTAL; + else if (args_has(args, 'k')) + cdata->flags |= PROMPT_KEY; status_prompt_set(c, prompt, input, cmd_command_prompt_callback, cmd_command_prompt_free, cdata, cdata->flags); free(prompt); |