# window_copy_write_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4901
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_line/

```c
static void window_copy_write_line(struct window_mode_entry *, struct screen_write_ctx *, u_int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `ctx` (`struct screen_write_ctx *`)
- `py` (`u_int`)

## Called by

- [`window_copy_init`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L504)
- [`window_copy_redraw_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5038)
- [`window_copy_scroll_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6379)
- [`window_copy_scroll_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6313)
- [`window_copy_write_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4995)

## Calls

- [`format_create_defaults`](/en/tmux/latest/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4926)
- [`format_draw`](/en/tmux/latest/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4972)
- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4969)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4985)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4967)
- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4958)
- [`screen_write_nputs`](/en/tmux/latest/reference/c-function-screen_write_nputs/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4959)
- [`screen_write_putc`](/en/tmux/latest/reference/c-function-screen_write_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4982)
- [`style_apply`](/en/tmux/latest/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4928)
- [`window_copy_line_number_mode`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_line_number_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4944)
- [`window_copy_line_number_width`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_line_number_width/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4918)
- [`window_copy_write_one`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4963)

## Other function references

- [`window_copy_cursor_offset`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_offset/) (function)

## Referenced declarations

- [`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)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`GRID_FLAG_NOPALETTE`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_nopalette/) (constant)
- [`window_copy_mode_data.hide_position`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-hide_position/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`format_tree.s`](/en/tmux/latest/reference/c-struct-format_tree-s/) (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_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`WINDOW_COPY_LINE_NUMBERS_ABSOLUTE`](/en/tmux/latest/reference/c-enum-window_copy_line_numbers-window_copy_line_numbers_absolute/) (constant)
- [`WINDOW_COPY_LINE_NUMBERS_DEFAULT`](/en/tmux/latest/reference/c-enum-window_copy_line_numbers-window_copy_line_numbers_default/) (constant)
- [`WINDOW_COPY_LINE_NUMBERS_HYBRID`](/en/tmux/latest/reference/c-enum-window_copy_line_numbers-window_copy_line_numbers_hybrid/) (constant)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`format_tree.wp`](/en/tmux/latest/reference/c-struct-format_tree-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
