# format_cb_current_command

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L891
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-format-c-format_cb_current_command/

```c
static void * format_cb_current_command(struct format_tree *ft)
```

## Parameters

- `ft` (`struct format_tree *`)

## Calls

- [`cmd_stringify_argv`](/en/tmux/latest/reference/c-function-cmd_stringify_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L902)
- [`osdep_get_name`](/en/tmux/latest/reference/c-function-osdep_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L899)
- [`parse_window_name`](/en/tmux/latest/reference/c-function-parse_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L908)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L905)

## Referenced declarations

- [`window_pane.argc`](/en/tmux/latest/reference/c-struct-window_pane-argc/) (attribute)
- [`window_pane.argv`](/en/tmux/latest/reference/c-struct-window_pane-argv/) (attribute)
- [`window_pane.fd`](/en/tmux/latest/reference/c-struct-window_pane-fd/) (attribute)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`window_pane.shell`](/en/tmux/latest/reference/c-struct-window_pane-shell/) (attribute)
- [`window_pane.tty`](/en/tmux/latest/reference/c-struct-window_pane-tty/) (attribute)
- [`format_tree.wp`](/en/tmux/latest/reference/c-struct-format_tree-wp/) (attribute)
