# tty_cmd_cells

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2087
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty_cmd_cells/

```c
void tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx)
```

## Parameters

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

## Calls

- [`tty_attributes`](/en/tmux/3.7c/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2116)
- [`tty_check_overlay_range`](/en/tmux/3.7c/reference/c-function-tty_check_overlay_range/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2123)
- [`tty_cursor_pane_unless_wrap`](/en/tmux/3.7c/reference/c-function-tty-c-tty_cursor_pane_unless_wrap/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2115)
- [`tty_draw_pane`](/en/tmux/3.7c/reference/c-function-tty-c-tty_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2108)
- [`tty_is_visible`](/en/tmux/3.7c/reference/c-function-tty-c-tty_is_visible/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2095)
- [`tty_margin_off`](/en/tmux/3.7c/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2114)
- [`tty_putn`](/en/tmux/3.7c/reference/c-function-tty_putn/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2129)

## Referenced by

- [`screen_write_collect_flush_line`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_flush_line/) (function)

## Referenced declarations

- [`tty_ctx.cell`](/en/tmux/3.7c/reference/c-struct-tty_ctx-cell/) (attribute)
- [`tty.cx`](/en/tmux/3.7c/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/3.7c/reference/c-struct-tty-cy/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.7c/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`tty_term.flags`](/en/tmux/3.7c/reference/c-struct-tty_term-flags/) (attribute)
- [`screen.hyperlinks`](/en/tmux/3.7c/reference/c-struct-screen-hyperlinks/) (attribute)
- [`visible_range.nx`](/en/tmux/3.7c/reference/c-struct-visible_range-nx/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/3.7c/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.7c/reference/c-struct-tty_ctx-palette/) (attribute)
- [`visible_range.px`](/en/tmux/3.7c/reference/c-struct-visible_range-px/) (attribute)
- [`visible_ranges.ranges`](/en/tmux/3.7c/reference/c-struct-visible_ranges-ranges/) (attribute)
- [`tty_ctx.redraw_cb`](/en/tmux/3.7c/reference/c-struct-tty_ctx-redraw_cb/) (attribute)
- [`tty.rlower`](/en/tmux/3.7c/reference/c-struct-tty-rlower/) (attribute)
- [`tty_ctx.s`](/en/tmux/3.7c/reference/c-struct-tty_ctx-s/) (attribute)
- [`tty.sx`](/en/tmux/3.7c/reference/c-struct-tty-sx/) (attribute)
- [`tty.term`](/en/tmux/3.7c/reference/c-struct-tty-term/) (attribute)
- [`TERM_NOAM`](/en/tmux/3.7c/reference/c-define-tmux-h-term_noam/) (constant)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WINDOW_BIGGER`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_window_bigger/) (constant)
- [`TTY_CTX_WRAPPED`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_wrapped/) (constant)
- [`tty_full_width`](/en/tmux/3.7c/reference/c-define-tty-c-tty_full_width/) (constant)
- [`visible_ranges.used`](/en/tmux/3.7c/reference/c-struct-visible_ranges-used/) (attribute)
- [`tty_ctx.wox`](/en/tmux/3.7c/reference/c-struct-tty_ctx-wox/) (attribute)
- [`tty_ctx.woy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-woy/) (attribute)
- [`tty_ctx.wsx`](/en/tmux/3.7c/reference/c-struct-tty_ctx-wsx/) (attribute)
- [`tty_ctx.xoff`](/en/tmux/3.7c/reference/c-struct-tty_ctx-xoff/) (attribute)
- [`tty_ctx.yoff`](/en/tmux/3.7c/reference/c-struct-tty_ctx-yoff/) (attribute)
