# screen_redraw_draw_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1287
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_pane/

```c
static void screen_redraw_draw_pane(struct screen_redraw_ctx *, struct window_pane *)
```

## Parameters

- `ctx` (`struct screen_redraw_ctx *`)
- `wp` (`struct window_pane *`)

## Called by

- [`screen_redraw_draw_panes`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1083)
- [`screen_redraw_pane`](/en/tmux/latest/reference/c-function-screen_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L860)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1328)
- [`screen_redraw_get_visible_ranges`](/en/tmux/latest/reference/c-function-screen_redraw_get_visible_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1371)
- [`screen_write_stop_sync`](/en/tmux/latest/reference/c-function-screen_write_stop_sync/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1326)
- [`tty_check_overlay_range`](/en/tmux/latest/reference/c-function-tty_check_overlay_range/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1370)
- [`tty_default_colours`](/en/tmux/latest/reference/c-function-tty_default_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1372)
- [`tty_draw_line`](/en/tmux/latest/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1382)

## Referenced declarations

- [`window_pane.base`](/en/tmux/latest/reference/c-struct-window_pane-base/) (attribute)
- [`screen_redraw_ctx.c`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`window_pane.id`](/en/tmux/latest/reference/c-struct-window_pane-id/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`MODE_SYNC`](/en/tmux/latest/reference/c-define-tmux-h-mode_sync/) (constant)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`visible_range.nx`](/en/tmux/latest/reference/c-struct-visible_range-nx/) (attribute)
- [`screen_redraw_ctx.ox`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-ox/) (attribute)
- [`screen_redraw_ctx.oy`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-oy/) (attribute)
- [`colour_palette.palette`](/en/tmux/latest/reference/c-struct-colour_palette-palette/) (attribute)
- [`window_pane.palette`](/en/tmux/latest/reference/c-struct-window_pane-palette/) (attribute)
- [`visible_range.px`](/en/tmux/latest/reference/c-struct-visible_range-px/) (attribute)
- [`visible_ranges.ranges`](/en/tmux/latest/reference/c-struct-visible_ranges-ranges/) (attribute)
- [`window_pane.screen`](/en/tmux/latest/reference/c-struct-window_pane-screen/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx/) (struct)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`screen_redraw_ctx.statuslines`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-statuslines/) (attribute)
- [`screen_redraw_ctx.statustop`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-statustop/) (attribute)
- [`screen_redraw_ctx.sx`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-sx/) (attribute)
- [`window_pane.sx`](/en/tmux/latest/reference/c-struct-window_pane-sx/) (attribute)
- [`screen_redraw_ctx.sy`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-sy/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`visible_ranges.used`](/en/tmux/latest/reference/c-struct-visible_ranges-used/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/latest/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
