version 1.46, 2019/05/23 11:13:30 |
version 1.47, 2020/01/27 08:53:13 |
|
|
.name = "command-prompt", |
.name = "command-prompt", |
.alias = NULL, |
.alias = NULL, |
|
|
.args = { "1iI:Np:t:", 0, 1 }, |
.args = { "1kiI:Np:t:", 0, 1 }, |
.usage = "[-1Ni] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
.usage = "[-1kiN] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
"[template]", |
"[template]", |
|
|
.flags = 0, |
.flags = 0, |
|
|
cdata->flags |= PROMPT_NUMERIC; |
cdata->flags |= PROMPT_NUMERIC; |
else if (args_has(args, 'i')) |
else if (args_has(args, 'i')) |
cdata->flags |= PROMPT_INCREMENTAL; |
cdata->flags |= PROMPT_INCREMENTAL; |
|
else if (args_has(args, 'k')) |
|
cdata->flags |= PROMPT_KEY; |
status_prompt_set(c, prompt, input, cmd_command_prompt_callback, |
status_prompt_set(c, prompt, input, cmd_command_prompt_callback, |
cmd_command_prompt_free, cdata, cdata->flags); |
cmd_command_prompt_free, cdata, cdata->flags); |
free(prompt); |
free(prompt); |