# tty_putn

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

```c
void tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
```

## Parameters

- `tty` (`struct tty *`)
- `buf` (`const void *`)
- `len` (`size_t`)
- `width` (`u_int`)

## Called by

- [`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#L74)
- [`tty_cell`](/en/tmux/latest/reference/c-function-tty_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2278)
- [`tty_cmd_cells`](/en/tmux/latest/reference/c-function-tty_cmd_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2129)
- [`tty_draw_line`](/en/tmux/latest/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L289)
- [`tty_draw_line_clear`](/en/tmux/latest/reference/c-function-tty-draw-c-tty_draw_line_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L86)
- [`tty_repeat_space`](/en/tmux/latest/reference/c-function-tty_repeat_space/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L921)

## Calls

- [`tty_add`](/en/tmux/latest/reference/c-function-tty-c-tty_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L695)

## Referenced declarations

- [`tty.cx`](/en/tmux/latest/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/latest/reference/c-struct-tty-cy/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`TERM_NOAM`](/en/tmux/latest/reference/c-define-tmux-h-term_noam/) (constant)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
