# format_create_defaults

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

```c
struct format_tree * format_create_defaults(struct cmdq_item *item, struct client *c, struct session *s, struct winlink *wl, struct window_pane *wp)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `wp` (`struct window_pane *`)

## Called by

- [`control_check_subs_pane`](/en/tmux/latest/reference/c-function-control-c-control_check_subs_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L899)
- [`control_check_subs_timer`](/en/tmux/latest/reference/c-function-control-c-control_check_subs_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L1080)
- [`control_check_subs_window`](/en/tmux/latest/reference/c-function-control-c-control_check_subs_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L979)
- [`format_create_from_state`](/en/tmux/latest/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5876)
- [`format_single`](/en/tmux/latest/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5833)
- [`menu_reapply_styles`](/en/tmux/latest/reference/c-function-menu-c-menu_reapply_styles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L217)
- [`popup_reapply_styles`](/en/tmux/latest/reference/c-function-popup-c-popup_reapply_styles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L140)
- [`screen_redraw_draw_borders_cell`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1011)
- [`screen_redraw_draw_borders_style`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L894)
- [`status_message_redraw`](/en/tmux/latest/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L632)
- [`status_prompt_redraw`](/en/tmux/latest/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L878)
- [`status_prompt_set`](/en/tmux/latest/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L696)
- [`status_prompt_update`](/en/tmux/latest/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L783)
- [`window_copy_set_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5319)
- [`window_copy_write_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4926)

## Calls

- [`format_defaults`](/en/tmux/latest/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5867)

## Other function references

- [`cmdq_get_client`](/en/tmux/latest/reference/c-function-cmdq_get_client/) (function)
- [`format_create`](/en/tmux/latest/reference/c-function-format_create/) (function)

## Referenced declarations

- [`format_tree.c`](/en/tmux/latest/reference/c-struct-format_tree-c/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`FORMAT_NONE`](/en/tmux/latest/reference/c-define-tmux-h-format_none/) (constant)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`format_tree.item`](/en/tmux/latest/reference/c-struct-format_tree-item/) (attribute)
- [`format_tree.s`](/en/tmux/latest/reference/c-struct-format_tree-s/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`winlink`](/en/tmux/latest/reference/c-struct-winlink/) (struct)
- [`format_tree.wl`](/en/tmux/latest/reference/c-struct-format_tree-wl/) (attribute)
- [`format_tree.wp`](/en/tmux/latest/reference/c-struct-format_tree-wp/) (attribute)
