# screen_write_box

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

```c
void screen_write_box(struct screen_write_ctx *ctx, u_int nx, u_int ny, enum box_lines lines, const struct grid_cell *gcp, const char *title)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `nx` (`u_int`)
- `ny` (`u_int`)
- `lines` (`enum box_lines`)
- `gcp` (`const struct grid_cell *`)
- `title` (`const char *`)

## Called by

- [`menu_draw_cb`](/en/tmux/latest/reference/c-function-menu_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L276)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L883)
- [`popup_draw_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L314)
- [`screen_write_menu`](/en/tmux/latest/reference/c-function-screen_write_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L786)
- [`window_tree_draw_label`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_label/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L419)

## Calls

- [`format_draw`](/en/tmux/latest/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L873)
- [`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#L842)
- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L872)
- [`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#L850)

## Other function references

- [`screen_write_box_border_set`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_box_border_set/) (function)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/latest/reference/c-struct-grid_cell-attr/) (attribute)
- [`box_lines`](/en/tmux/latest/reference/c-enum-box_lines/) (enum)
- [`CELL_BOTTOMLEFT`](/en/tmux/latest/reference/c-define-tmux-h-cell_bottomleft/) (constant)
- [`CELL_BOTTOMRIGHT`](/en/tmux/latest/reference/c-define-tmux-h-cell_bottomright/) (constant)
- [`CELL_LEFTRIGHT`](/en/tmux/latest/reference/c-define-tmux-h-cell_leftright/) (constant)
- [`CELL_TOPBOTTOM`](/en/tmux/latest/reference/c-define-tmux-h-cell_topbottom/) (constant)
- [`CELL_TOPLEFT`](/en/tmux/latest/reference/c-define-tmux-h-cell_topleft/) (constant)
- [`CELL_TOPRIGHT`](/en/tmux/latest/reference/c-define-tmux-h-cell_topright/) (constant)
- [`screen.cx`](/en/tmux/latest/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`GRID_FLAG_NOPALETTE`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_nopalette/) (constant)
- [`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)
