# tty_cmd_insertcharacter

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1660
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-tty-c-tty_cursor_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1677)
- [`tty_default_attributes`](/en/tmux/latest/reference/c-function-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1674)
- [`tty_draw_pane`](/en/tmux/latest/reference/c-function-tty-c-tty_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1670)
- [`tty_emulate_repeat`](/en/tmux/latest/reference/c-function-tty-c-tty_emulate_repeat/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1679)

## Other function references

- [`tty_fake_bce`](/en/tmux/latest/reference/c-function-tty_fake_bce/) (function)
- [`tty_term_has`](/en/tmux/latest/reference/c-function-tty_term_has/) (function)

## Referenced by

- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function)
- [`screen_write_insertcharacter`](/en/tmux/latest/reference/c-function-screen_write_insertcharacter/) (function)

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/latest/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/latest/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.flags`](/en/tmux/latest/reference/c-struct-tty_ctx-flags/) (attribute)
- [`screen.hyperlinks`](/en/tmux/latest/reference/c-struct-screen-hyperlinks/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/latest/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/latest/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`client.overlay_check`](/en/tmux/latest/reference/c-struct-client-overlay_check/) (attribute)
- [`tty_ctx.palette`](/en/tmux/latest/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.s`](/en/tmux/latest/reference/c-struct-tty_ctx-s/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/latest/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WINDOW_BIGGER`](/en/tmux/latest/reference/c-define-tmux-h-tty_ctx_window_bigger/) (constant)
- [`tty_full_width`](/en/tmux/latest/reference/c-define-tty-c-tty_full_width/) (constant)
- [`TTYC_ICH`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_ich/) (constant)
- [`TTYC_ICH1`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_ich1/) (constant)
