# tty_cmd_insertcharacter

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

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

## Parameters

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

## Calls

- [`tty_cursor_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_cursor_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1514)
- [`tty_default_attributes`](/en/tmux/3.2a/reference/c-function-tty-c-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1512)
- [`tty_draw_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1508)
- [`tty_emulate_repeat`](/en/tmux/3.2a/reference/c-function-tty-c-tty_emulate_repeat/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1516)

## Other function references

- [`tty_fake_bce`](/en/tmux/3.2a/reference/c-function-tty-c-tty_fake_bce/) (function)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function)

## Referenced by

- [`screen_write_cell`](/en/tmux/3.2a/reference/c-function-screen_write_cell/) (function)
- [`screen_write_insertcharacter`](/en/tmux/3.2a/reference/c-function-screen_write_insertcharacter/) (function)
- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.bigger`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bigger/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.2a/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.num`](/en/tmux/3.2a/reference/c-struct-tty_ctx-num/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/3.2a/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.2a/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.2a/reference/c-struct-tty_ctx/) (struct)
- [`tty_full_width`](/en/tmux/3.2a/reference/c-define-tty-c-tty_full_width/) (constant)
- [`TTYC_ICH`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_ich/) (constant)
- [`TTYC_ICH1`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_ich1/) (constant)
