# tty_putc

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

```c
void tty_putc(struct tty *tty, u_char ch)
```

## Parameters

- `tty` (`struct tty *`)
- `ch` (`u_char`)

## Called by

- [`cmd_display_panes_draw_pane`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L165)
- [`tty_cell`](/en/tmux/3.2a/reference/c-function-tty_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1954)
- [`tty_cmd_alignmenttest`](/en/tmux/3.2a/reference/c-function-tty_cmd_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1840)
- [`tty_cmd_linefeed`](/en/tmux/3.2a/reference/c-function-tty_cmd_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1686)
- [`tty_cmd_scrollup`](/en/tmux/3.2a/reference/c-function-tty_cmd_scrollup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1715)
- [`tty_cursor`](/en/tmux/3.2a/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2143)
- [`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#L1397)

## Calls

- [`tty_acs_get`](/en/tmux/3.2a/reference/c-function-tty_acs_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L574)
- [`tty_add`](/en/tmux/3.2a/reference/c-function-tty-c-tty_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L576)
- [`tty_putcode2`](/en/tmux/3.2a/reference/c-function-tty_putcode2/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L594)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`tty.cell`](/en/tmux/3.2a/reference/c-struct-tty-cell/) (attribute)
- [`tty.cx`](/en/tmux/3.2a/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/3.2a/reference/c-struct-tty-cy/) (attribute)
- [`tty_term.flags`](/en/tmux/3.2a/reference/c-struct-tty_term-flags/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`tty.rlower`](/en/tmux/3.2a/reference/c-struct-tty-rlower/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`TERM_NOAM`](/en/tmux/3.2a/reference/c-define-tmux-h-term_noam/) (constant)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTYC_CUP`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cup/) (constant)
