# screen_init

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

```c
void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
```

## Parameters

- `s` (`struct screen *`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `hlimit` (`u_int`)

## Called by

- [`format_draw`](/en/tmux/3.2a/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format-draw.c#L702)
- [`menu_display`](/en/tmux/3.2a/reference/c-function-menu_display/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L367)
- [`popup_display`](/en/tmux/3.2a/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L343)
- [`popup_draw_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L132)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L433)
- [`status_init`](/en/tmux/3.2a/reference/c-function-status_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L298)
- [`status_message_redraw`](/en/tmux/3.2a/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L514)
- [`status_prompt_redraw`](/en/tmux/3.2a/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L675)
- [`status_push_screen`](/en/tmux/3.2a/reference/c-function-status-c-status_push_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L270)
- [`window_copy_search`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3134)
- [`window_copy_search_marks`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3286)
- [`window_pane_create`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L877)

## Calls

- [`grid_create`](/en/tmux/3.2a/reference/c-function-grid_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L76)
- [`screen_reinit`](/en/tmux/3.2a/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L90)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L79)

## Referenced by

- [`mode_tree_start`](/en/tmux/3.2a/reference/c-function-mode_tree_start/) (function)
- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)
- [`window_clock_init`](/en/tmux/3.2a/reference/c-function-window-clock-c-window_clock_init/) (function)
- [`window_copy_clone_screen`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_clone_screen/) (function)
- [`window_copy_common_init`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_common_init/) (function)
- [`window_copy_view_init`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_view_init/) (function)

## Referenced declarations

- [`screen.ccolour`](/en/tmux/3.2a/reference/c-struct-screen-ccolour/) (attribute)
- [`screen.cstyle`](/en/tmux/3.2a/reference/c-struct-screen-cstyle/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`screen.path`](/en/tmux/3.2a/reference/c-struct-screen-path/) (attribute)
- [`screen.saved_grid`](/en/tmux/3.2a/reference/c-struct-screen-saved_grid/) (attribute)
- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`screen.sel`](/en/tmux/3.2a/reference/c-struct-screen-sel/) (attribute)
- [`screen.tabs`](/en/tmux/3.2a/reference/c-struct-screen-tabs/) (attribute)
- [`screen.title`](/en/tmux/3.2a/reference/c-struct-screen-title/) (attribute)
- [`screen.titles`](/en/tmux/3.2a/reference/c-struct-screen-titles/) (attribute)
- [`screen.write_list`](/en/tmux/3.2a/reference/c-struct-screen-write_list/) (attribute)
