# cmd_command_prompt_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L180
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/

```c
static int cmd_command_prompt_callback(struct client *, void *, const char *, int)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `s` (`const char *`)
- `done` (`int`)

## Calls

- [`args_make_commands`](/en/tmux/3.7c/reference/c-function-args_make_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L216)
- [`cmd_append_argv`](/en/tmux/3.7c/reference/c-function-cmd_append_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L197)
- [`cmd_copy_argv`](/en/tmux/3.7c/reference/c-function-cmd_copy_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L206)
- [`cmd_free_argv`](/en/tmux/3.7c/reference/c-function-cmd_free_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L211)
- [`cmdq_append`](/en/tmux/3.7c/reference/c-function-cmdq_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L218)
- [`cmdq_continue`](/en/tmux/3.7c/reference/c-function-cmdq_continue/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L234)
- [`cmdq_get_command`](/en/tmux/3.7c/reference/c-function-cmdq_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L221)
- [`cmdq_insert_after`](/en/tmux/3.7c/reference/c-function-cmdq_insert_after/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L225)
- [`status_prompt_update`](/en/tmux/3.7c/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L200)

## Other function references

- [`cmdq_get_error`](/en/tmux/3.7c/reference/c-function-cmdq_get_error/) (function)
- [`cmdq_get_state`](/en/tmux/3.7c/reference/c-function-cmdq_get_state/) (function)

## Referenced by

- [`cmd_command_prompt_exec`](/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function)

## Referenced declarations

- [`cmd_command_prompt_cdata.argc`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-argc/) (attribute)
- [`cmd_command_prompt_cdata.argv`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-argv/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`cmd_command_prompt_cdata.count`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-count/) (attribute)
- [`cmd_command_prompt_cdata.current`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-current/) (attribute)
- [`cmd_command_prompt_cdata.flags`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-flags/) (attribute)
- [`cmd_command_prompt_cdata.item`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-item/) (attribute)
- [`cmd_command_prompt_prompt.prompt`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_prompt-prompt/) (attribute)
- [`PROMPT_INCREMENTAL`](/en/tmux/3.7c/reference/c-define-tmux-h-prompt_incremental/) (constant)
- [`client.prompt_inputcb`](/en/tmux/3.7c/reference/c-struct-client-prompt_inputcb/) (attribute)
- [`cmd_command_prompt_cdata.prompts`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-prompts/) (attribute)
- [`cmd_command_prompt_cdata.state`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-state/) (attribute)
