# screen_redraw_make_pane_status

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L587
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/

```c
static int screen_redraw_make_pane_status(struct client *c, struct window_pane *wp, struct screen_redraw_ctx *rctx, enum pane_lines pane_lines)
```

## Parameters

- `c` (`struct client *`)
- `wp` (`struct window_pane *`)
- `rctx` (`struct screen_redraw_ctx *`)
- `pane_lines` (`enum pane_lines`)

## Called by

- [`screen_redraw_update`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L761)

## Calls

- [`format_defaults`](/en/tmux/3.7c/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L606)
- [`format_draw`](/en/tmux/3.7c/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L647)
- [`format_expand_time`](/en/tmux/3.7c/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L615)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L650)
- [`grid_compare`](/en/tmux/3.7c/reference/c-function-grid_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L655)
- [`options_get_string`](/en/tmux/3.7c/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L613)
- [`screen_free`](/en/tmux/3.7c/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L656)
- [`screen_init`](/en/tmux/3.7c/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L628)
- [`screen_redraw_border_set`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_border_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L640)
- [`screen_redraw_type_of_cell`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_type_of_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L639)
- [`screen_write_cell`](/en/tmux/3.7c/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L641)
- [`screen_write_cursormove`](/en/tmux/3.7c/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L645)
- [`screen_write_start`](/en/tmux/3.7c/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L631)
- [`screen_write_stop`](/en/tmux/3.7c/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L649)
- [`style_apply`](/en/tmux/3.7c/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L612)
- [`style_ranges_free`](/en/tmux/3.7c/reference/c-function-style_ranges_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L646)
- [`window_pane_show_scrollbar`](/en/tmux/3.7c/reference/c-function-window_pane_show_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L602)

## Other function references

- [`format_create`](/en/tmux/3.7c/reference/c-function-format_create/) (function)
- [`server_client_get_pane`](/en/tmux/3.7c/reference/c-function-server_client_get_pane/) (function)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.7c/reference/c-struct-grid_cell-attr/) (attribute)
- [`window_pane.border_status_line`](/en/tmux/3.7c/reference/c-struct-window_pane-border_status_line/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`session.curw`](/en/tmux/3.7c/reference/c-struct-session-curw/) (attribute)
- [`style_line_entry.expanded`](/en/tmux/3.7c/reference/c-struct-style_line_entry-expanded/) (attribute)
- [`FORMAT_PANE`](/en/tmux/3.7c/reference/c-define-tmux-h-format_pane/) (constant)
- [`FORMAT_STATUS`](/en/tmux/3.7c/reference/c-define-tmux-h-format_status/) (constant)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`style.pad`](/en/tmux/3.7c/reference/c-struct-style-pad/) (attribute)
- [`pane_lines`](/en/tmux/3.7c/reference/c-enum-pane_lines/) (enum)
- [`screen_redraw_ctx.pane_status`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-pane_status/) (attribute)
- [`PANE_STATUS_TOP`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_status_top/) (constant)
- [`style_line_entry.ranges`](/en/tmux/3.7c/reference/c-struct-style_line_entry-ranges/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx/) (struct)
- [`window_pane.scrollbar_style`](/en/tmux/3.7c/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`window_pane.status_screen`](/en/tmux/3.7c/reference/c-struct-window_pane-status_screen/) (attribute)
- [`window_pane.status_size`](/en/tmux/3.7c/reference/c-struct-window_pane-status_size/) (attribute)
- [`window_pane.sx`](/en/tmux/3.7c/reference/c-struct-window_pane-sx/) (attribute)
- [`window.sx`](/en/tmux/3.7c/reference/c-struct-window-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/3.7c/reference/c-struct-window_pane-sy/) (attribute)
- [`style.width`](/en/tmux/3.7c/reference/c-struct-style-width/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/3.7c/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.7c/reference/c-struct-window_pane-yoff/) (attribute)
