# format_defaults

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

```c
void format_defaults(struct format_tree *ft, struct client *c, struct session *s, struct winlink *wl, struct window_pane *wp)
```

## Parameters

- `ft` (`struct format_tree *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `wp` (`struct window_pane *`)

## Called by

- [`cmd_display_message_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-message.c#L123)
- [`cmd_list_clients_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-clients.c#L78)
- [`cmd_list_keys_commands`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L337)
- [`cmd_list_panes_window`](/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L131)
- [`cmd_list_sessions_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-sessions-c-cmd_list_sessions_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-sessions.c#L71)
- [`cmd_list_windows_session`](/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L113)
- [`cmd_pipe_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-pipe-pane.c#L113)
- [`format_create_defaults`](/en/tmux/3.2a/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4661)
- [`format_loop_panes`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3852)
- [`format_loop_sessions`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3725)
- [`format_loop_windows`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3800)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L418)
- [`server_client_set_title`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_set_title/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2002)
- [`status_prompt_update`](/en/tmux/3.2a/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L636)
- [`status_redraw`](/en/tmux/3.2a/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L356)
- [`window_buffer_build`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L203)
- [`window_buffer_get_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L314)
- [`window_client_get_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L277)
- [`window_tree_get_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L886)

## Calls

- [`format_defaults_client`](/en/tmux/3.2a/reference/c-function-format-c-format_defaults_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4726)
- [`format_defaults_pane`](/en/tmux/3.2a/reference/c-function-format_defaults_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4732)
- [`format_defaults_paste_buffer`](/en/tmux/3.2a/reference/c-function-format_defaults_paste_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4736)
- [`format_defaults_session`](/en/tmux/3.2a/reference/c-function-format-c-format_defaults_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4728)
- [`format_defaults_winlink`](/en/tmux/3.2a/reference/c-function-format-c-format_defaults_winlink/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4730)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4690)
- [`paste_get_top`](/en/tmux/3.2a/reference/c-function-paste_get_top/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4734)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`format_tree`](/en/tmux/3.2a/reference/c-struct-format_tree/) (struct)
- [`FORMAT_TYPE_PANE`](/en/tmux/3.2a/reference/c-enum-format_type-format_type_pane/) (constant)
- [`FORMAT_TYPE_SESSION`](/en/tmux/3.2a/reference/c-enum-format_type-format_type_session/) (constant)
- [`FORMAT_TYPE_UNKNOWN`](/en/tmux/3.2a/reference/c-enum-format_type-format_type_unknown/) (constant)
- [`FORMAT_TYPE_WINDOW`](/en/tmux/3.2a/reference/c-enum-format_type-format_type_window/) (constant)
- [`session.id`](/en/tmux/3.2a/reference/c-struct-session-id/) (attribute)
- [`window_pane.id`](/en/tmux/3.2a/reference/c-struct-window_pane-id/) (attribute)
- [`winlink.idx`](/en/tmux/3.2a/reference/c-struct-winlink-idx/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`format_tree.type`](/en/tmux/3.2a/reference/c-struct-format_tree-type/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
