# window_copy_write_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3600
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-window-copy-c-window_copy_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L456)
- [`window_copy_redraw_lines`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3707)
- [`window_copy_scroll_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4835)
- [`window_copy_scroll_up`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4798)
- [`window_copy_write_lines`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_write_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3666)

## Calls

- [`screen_write_putc`](/en/tmux/3.2a/reference/c-function-screen_write_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3655)
- [`screen_write_puts`](/en/tmux/3.2a/reference/c-function-screen_write_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3644)
- [`style_apply`](/en/tmux/3.2a/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3612)
- [`window_copy_write_one`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3649)
- [`xsnprintf`](/en/tmux/3.2a/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3624)

## Other function references

- [`screen_write_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function)

## Referenced declarations

- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`GRID_FLAG_NOPALETTE`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_nopalette/) (constant)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`screen.rlower`](/en/tmux/3.2a/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/3.2a/reference/c-struct-screen-rupper/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
