# window_buffer_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L352
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_init/

```c
static struct screen * window_buffer_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `fs` (`struct cmd_find_state *`)
- `args` (`struct args *`)

## Calls

- [`cmd_find_copy_state`](/en/tmux/3.7c/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L361)
- [`mode_tree_build`](/en/tmux/3.7c/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L382)
- [`mode_tree_draw`](/en/tmux/3.7c/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L383)
- [`mode_tree_start`](/en/tmux/3.7c/reference/c-function-mode_tree_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L376)
- [`mode_tree_zoom`](/en/tmux/3.7c/reference/c-function-mode_tree_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L380)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L359)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L366)

## Other function references

- [`args_count`](/en/tmux/3.7c/reference/c-function-args_count/) (function)
- [`args_get`](/en/tmux/3.7c/reference/c-function-args_get/) (function)
- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function)
- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function)
- [`window_buffer_build`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_build/) (function)
- [`window_buffer_draw`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_draw/) (function)
- [`window_buffer_get_key`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_get_key/) (function)
- [`window_buffer_help`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_help/) (function)
- [`window_buffer_menu`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_menu/) (function)
- [`window_buffer_search`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_search/) (function)
- [`window_buffer_sort`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_sort/) (function)

## Referenced by

- [`window_buffer_mode`](/en/tmux/3.7c/reference/c-variable-window_buffer_mode/) (attribute)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`cmd_find_state`](/en/tmux/3.7c/reference/c-struct-cmd_find_state/) (struct)
- [`window_buffer_modedata.command`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-command/) (attribute)
- [`window_buffer_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_buffer_modedata.format`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-format/) (attribute)
- [`window_buffer_modedata.fs`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-fs/) (attribute)
- [`window_buffer_modedata.key_format`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-key_format/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`WINDOW_BUFFER_DEFAULT_COMMAND`](/en/tmux/3.7c/reference/c-define-window-buffer-c-window_buffer_default_command/) (constant)
- [`WINDOW_BUFFER_DEFAULT_FORMAT`](/en/tmux/3.7c/reference/c-define-window-buffer-c-window_buffer_default_format/) (constant)
- [`WINDOW_BUFFER_DEFAULT_KEY_FORMAT`](/en/tmux/3.7c/reference/c-define-window-buffer-c-window_buffer_default_key_format/) (constant)
- [`window_buffer_menu_items`](/en/tmux/3.7c/reference/c-variable-window-buffer-c-window_buffer_menu_items/) (attribute)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
- [`window_buffer_modedata.wp`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
