# screen_write_combine

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2654
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen-write-c-screen_write_combine/

```c
static int screen_write_combine(struct screen_write_ctx *, const struct grid_cell *)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `gc` (`const struct grid_cell *`)

## Called by

- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2495)

## Calls

- [`grid_view_get_cell`](/en/tmux/latest/reference/c-function-grid_view_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2693)
- [`grid_view_set_cell`](/en/tmux/latest/reference/c-function-grid_view_set_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2749)
- [`grid_view_set_padding`](/en/tmux/latest/reference/c-function-grid_view_set_padding/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2751)
- [`hanguljamo_check_state`](/en/tmux/latest/reference/c-function-hanguljamo_check_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2707)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2688)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2680)
- [`screen_redraw_get_visible_ranges`](/en/tmux/latest/reference/c-function-screen_redraw_get_visible_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2760)
- [`screen_write_collect_flush`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2730)
- [`screen_write_initctx`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2778)
- [`screen_write_set_cursor`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_set_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2777)
- [`tty_write`](/en/tmux/latest/reference/c-function-tty_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2782)
- [`utf8_is_hangul_filler`](/en/tmux/latest/reference/c-function-utf8_is_hangul_filler/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2668)
- [`utf8_is_zwj`](/en/tmux/latest/reference/c-function-utf8_is_zwj/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2676)
- [`utf8_should_combine`](/en/tmux/latest/reference/c-function-utf8_should_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2715)

## Other function references

- [`tty_cmd_cell`](/en/tmux/latest/reference/c-function-tty_cmd_cell/) (function)
- [`utf8_has_zwj`](/en/tmux/latest/reference/c-function-utf8_has_zwj/) (function)
- [`utf8_is_vs`](/en/tmux/latest/reference/c-function-utf8_is_vs/) (function)

## Referenced declarations

- [`tty_ctx.cell`](/en/tmux/latest/reference/c-struct-tty_ctx-cell/) (attribute)
- [`screen.cx`](/en/tmux/latest/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/latest/reference/c-struct-utf8_data-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`tty_ctx.flags`](/en/tmux/latest/reference/c-struct-tty_ctx-flags/) (attribute)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`GRID_FLAG_PADDING`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`HANGULJAMO_STATE_CHOSEONG`](/en/tmux/latest/reference/c-enum-hanguljamo_state-hanguljamo_state_choseong/) (constant)
- [`HANGULJAMO_STATE_COMPOSABLE`](/en/tmux/latest/reference/c-enum-hanguljamo_state-hanguljamo_state_composable/) (constant)
- [`HANGULJAMO_STATE_NOT_COMPOSABLE`](/en/tmux/latest/reference/c-enum-hanguljamo_state-hanguljamo_state_not_composable/) (constant)
- [`HANGULJAMO_STATE_NOT_HANGULJAMO`](/en/tmux/latest/reference/c-enum-hanguljamo_state-hanguljamo_state_not_hanguljamo/) (constant)
- [`visible_range.nx`](/en/tmux/latest/reference/c-struct-visible_range-nx/) (attribute)
- [`visible_ranges.ranges`](/en/tmux/latest/reference/c-struct-visible_ranges-ranges/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`TTY_CTX_CELL_INVALIDATE`](/en/tmux/latest/reference/c-define-tmux-h-tty_ctx_cell_invalidate/) (constant)
- [`visible_ranges.used`](/en/tmux/latest/reference/c-struct-visible_ranges-used/) (attribute)
- [`utf8_data.width`](/en/tmux/latest/reference/c-struct-utf8_data-width/) (attribute)
- [`screen_write_ctx.wp`](/en/tmux/latest/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
