# cmd_parse_and_append

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.h#L2335
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_parse_and_append/

```c
enum cmd_parse_status cmd_parse_and_append(const char *, struct cmd_parse_input *, struct client *, struct cmdq_state *, char **)
```

## Parameters

- `` (`const char *`)
- `` (`struct cmd_parse_input *`)
- `` (`struct client *`)
- `` (`struct cmdq_state *`)
- `` (`char **`)

## Called by

- [`cmd_command_prompt_callback`](/en/tmux/3.2a/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-command-prompt.c#L171)
- [`cmd_confirm_before_callback`](/en/tmux/3.2a/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-confirm-before.c#L99)
- [`cmd_display_panes_key`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L243)
- [`cmd_run_shell_timer`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L190)
- [`control_read_callback`](/en/tmux/3.2a/reference/c-function-control-c-control_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L568)
- [`menu_key_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L335)
- [`mode_tree_run_command`](/en/tmux/3.2a/reference/c-function-mode_tree_run_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L1203)

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmd_parse_input`](/en/tmux/3.2a/reference/c-struct-cmd_parse_input/) (struct)
- [`cmd_parse_status`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status/) (enum)
- [`cmdq_state`](/en/tmux/3.2a/reference/c-struct-cmdq_state/) (struct)
