# cmd_display_panes_draw_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L50
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L198)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L113)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L118)
- [`tty_attributes`](/en/tmux/3.2a/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L138)
- [`tty_cursor`](/en/tmux/3.2a/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L141)
- [`tty_putc`](/en/tmux/3.2a/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L165)
- [`tty_putn`](/en/tmux/3.2a/reference/c-function-tty_putn/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L142)
- [`window_pane_index`](/en/tmux/3.2a/reference/c-function-window_pane_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L112)
- [`xsnprintf`](/en/tmux/3.2a/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L114)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`screen_redraw_ctx.c`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`session.options`](/en/tmux/3.2a/reference/c-struct-session-options/) (attribute)
- [`screen_redraw_ctx.ox`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-ox/) (attribute)
- [`screen_redraw_ctx.oy`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-oy/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx/) (struct)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`screen_redraw_ctx.statuslines`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-statuslines/) (attribute)
- [`screen_redraw_ctx.statustop`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-statustop/) (attribute)
- [`screen_redraw_ctx.sx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-sx/) (attribute)
- [`window_pane.sx`](/en/tmux/3.2a/reference/c-struct-window_pane-sx/) (attribute)
- [`screen_redraw_ctx.sy`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-sy/) (attribute)
- [`window_pane.sy`](/en/tmux/3.2a/reference/c-struct-window_pane-sy/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_clock_table`](/en/tmux/3.2a/reference/c-variable-window_clock_table/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/3.2a/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.2a/reference/c-struct-window_pane-yoff/) (attribute)
