# window_copy_formats

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L748
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_formats/

```c
static void window_copy_formats(struct window_mode_entry *, struct format_tree *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `ft` (`struct format_tree *`)

## Calls

- [`format_add`](/en/tmux/3.2a/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L752)
- [`format_add_cb`](/en/tmux/3.2a/reference/c-function-format_add_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L770)

## Other function references

- [`window_copy_cursor_line_cb`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_line_cb/) (function)
- [`window_copy_cursor_word_cb`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_word_cb/) (function)
- [`window_copy_search_match_cb`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_match_cb/) (function)

## Referenced by

- [`window_copy_mode`](/en/tmux/3.2a/reference/c-variable-window_copy_mode/) (attribute)
- [`window_view_mode`](/en/tmux/3.2a/reference/c-variable-window_view_mode/) (attribute)

## Referenced declarations

- [`window_copy_mode_data.cursordrag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cursordrag/) (attribute)
- [`CURSORDRAG_NONE`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-171347220270030325112165345063320142325041012373-cursordrag_none/) (constant)
- [`window_copy_mode_data.cx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.endselx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-endselx/) (attribute)
- [`window_copy_mode_data.endsely`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-endsely/) (attribute)
- [`format_tree`](/en/tmux/3.2a/reference/c-struct-format_tree/) (struct)
- [`window_copy_mode_data.oy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`window_copy_mode_data.searchmark`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`screen.sel`](/en/tmux/3.2a/reference/c-struct-screen-sel/) (attribute)
- [`window_copy_mode_data.selx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-selx/) (attribute)
- [`window_copy_mode_data.sely`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-sely/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
