# window_copy_formats

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L969
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L977)
- [`format_add_cb`](/en/tmux/latest/reference/c-function-format_add_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1031)
- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L976)
- [`window_copy_line_number_is_absolute`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_line_number_is_absolute/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L980)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cursordrag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cursordrag/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.endselx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-endselx/) (attribute)
- [`window_copy_mode_data.endsely`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-endsely/) (attribute)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_copy_mode_data.searchcount`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchcount/) (attribute)
- [`window_copy_mode_data.searchmark`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`window_copy_mode_data.searchmore`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchmore/) (attribute)
- [`screen.sel`](/en/tmux/latest/reference/c-struct-screen-sel/) (attribute)
- [`window_copy_mode_data.selflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_mode_data.selx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selx/) (attribute)
- [`window_copy_mode_data.sely`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-sely/) (attribute)
- [`grid_line.time`](/en/tmux/latest/reference/c-struct-grid_line-time/) (attribute)
- [`window_copy_mode_data.timeout`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-timeout/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
