# cmd_display_panes_draw_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L80
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw_pane/

```c
static void cmd_display_panes_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp)
```

## Parameters

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

## Called by

- [`cmd_display_panes_draw`](/en/tmux/latest/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L237)

## Calls

- [`cmd_display_panes_put`](/en/tmux/latest/reference/c-function-cmd-display-panes-c-cmd_display_panes_put/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L174)
- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L144)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L149)
- [`tty_attributes`](/en/tmux/latest/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L169)
- [`tty_cursor`](/en/tmux/latest/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L223)
- [`window_pane_index`](/en/tmux/latest/reference/c-function-window_pane_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L143)
- [`xsnprintf`](/en/tmux/latest/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L145)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`grid_cell.bg`](/en/tmux/latest/reference/c-struct-grid_cell-bg/) (attribute)
- [`screen_redraw_ctx.c`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (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)
- [`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)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_clock_table`](/en/tmux/latest/reference/c-variable-window_clock_table/) (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)
