# cfg_show_causes

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

```c
void cfg_show_causes(struct session *s)
```

## Parameters

- `s` (`struct session *`)

## Called by

- [`cfg_done`](/en/tmux/latest/reference/c-function-cfg-c-cfg_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L54)
- [`cmd_attach_session`](/en/tmux/latest/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L171)
- [`cmd_new_session_exec`](/en/tmux/latest/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L365)

## Calls

- [`control_write`](/en/tmux/latest/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L253)
- [`window_copy_add`](/en/tmux/latest/reference/c-function-window_copy_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L273)
- [`window_pane_set_mode`](/en/tmux/latest/reference/c-function-window_pane_set_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L271)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`session.attached`](/en/tmux/latest/reference/c-struct-session-attached/) (attribute)
- [`cfg_causes`](/en/tmux/latest/reference/c-variable-cfg-c-cfg_causes/) (attribute)
- [`cfg_ncauses`](/en/tmux/latest/reference/c-variable-cfg-c-cfg_ncauses/) (attribute)
- [`CLIENT_CONTROL`](/en/tmux/latest/reference/c-define-tmux-h-client_control/) (constant)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`window_mode_entry.mode`](/en/tmux/latest/reference/c-struct-window_mode_entry-mode/) (attribute)
- [`window_pane.modes`](/en/tmux/latest/reference/c-struct-window_pane-modes/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`window_view_mode`](/en/tmux/latest/reference/c-variable-window_view_mode/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
