version 1.35, 2016/10/11 07:23:34 |
version 1.36, 2016/10/12 13:03:27 |
|
|
.name = "command-prompt", |
.name = "command-prompt", |
.alias = NULL, |
.alias = NULL, |
|
|
.args = { "1I:p:t:", 0, 1 }, |
.args = { "1I:Np:t:", 0, 1 }, |
.usage = "[-1] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
.usage = "[-1N] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
"[template]", |
"[template]", |
|
|
.tflag = CMD_CLIENT, |
.tflag = CMD_CLIENT, |
|
|
flags = 0; |
flags = 0; |
if (args_has(args, '1')) |
if (args_has(args, '1')) |
flags |= PROMPT_SINGLE; |
flags |= PROMPT_SINGLE; |
|
else if (args_has(args, 'N')) |
|
flags |= PROMPT_NUMERIC; |
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, flags); |
cmd_command_prompt_free, cdata, flags); |
free(prompt); |
free(prompt); |