# tty_draw_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1221
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty-c-tty_draw_pane/

```c
static void tty_draw_pane(struct tty *, const struct tty_ctx *, u_int)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)
- `py` (`u_int`)

## Called by

- [`tty_cmd_cells`](/en/tmux/3.2a/reference/c-function-tty_cmd_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1877)
- [`tty_cmd_deletecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_deletecharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1527)
- [`tty_cmd_insertcharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_insertcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1508)
- [`tty_redraw_region`](/en/tmux/3.2a/reference/c-function-tty-c-tty_redraw_region/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L962)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1226)
- [`tty_clamp_line`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clamp_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1233)
- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1229)

## Referenced declarations

- [`tty_ctx.bigger`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bigger/) (attribute)
- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.2a/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.2a/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.s`](/en/tmux/3.2a/reference/c-struct-tty_ctx-s/) (attribute)
- [`tty_ctx.sx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-sx/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.2a/reference/c-struct-tty_ctx/) (struct)
- [`tty_ctx.xoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-xoff/) (attribute)
- [`tty_ctx.yoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-yoff/) (attribute)
