# screen_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L76
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L746)
- [`menu_prepare`](/en/tmux/3.7c/reference/c-function-menu_prepare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L581)
- [`popup_display`](/en/tmux/3.7c/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L835)
- [`popup_draw_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L302)
- [`popup_make_pane`](/en/tmux/3.7c/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L442)
- [`screen_redraw_make_pane_status`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L628)
- [`status_init`](/en/tmux/3.7c/reference/c-function-status_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L329)
- [`status_message_redraw`](/en/tmux/3.7c/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L624)
- [`status_prompt_redraw`](/en/tmux/3.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L873)
- [`status_push_screen`](/en/tmux/3.7c/reference/c-function-status-c-status_push_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L301)
- [`window_copy_search`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4255)
- [`window_copy_search_marks`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4446)
- [`window_pane_create`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1076)

## Calls

- [`grid_create`](/en/tmux/3.7c/reference/c-function-grid_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L78)
- [`screen_reinit`](/en/tmux/3.7c/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L102)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L81)

## Referenced by

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

## Referenced declarations

- [`screen.ccolour`](/en/tmux/3.7c/reference/c-struct-screen-ccolour/) (attribute)
- [`screen.cstyle`](/en/tmux/3.7c/reference/c-struct-screen-cstyle/) (attribute)
- [`screen.default_ccolour`](/en/tmux/3.7c/reference/c-struct-screen-default_ccolour/) (attribute)
- [`screen.default_cstyle`](/en/tmux/3.7c/reference/c-struct-screen-default_cstyle/) (attribute)
- [`screen.default_mode`](/en/tmux/3.7c/reference/c-struct-screen-default_mode/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`screen.hyperlinks`](/en/tmux/3.7c/reference/c-struct-screen-hyperlinks/) (attribute)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`MODE_CURSOR`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`screen.path`](/en/tmux/3.7c/reference/c-struct-screen-path/) (attribute)
- [`screen.saved_grid`](/en/tmux/3.7c/reference/c-struct-screen-saved_grid/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`SCREEN_CURSOR_DEFAULT`](/en/tmux/3.7c/reference/c-enum-screen_cursor_style-screen_cursor_default/) (constant)
- [`screen.sel`](/en/tmux/3.7c/reference/c-struct-screen-sel/) (attribute)
- [`screen.tabs`](/en/tmux/3.7c/reference/c-struct-screen-tabs/) (attribute)
- [`screen.title`](/en/tmux/3.7c/reference/c-struct-screen-title/) (attribute)
- [`screen.titles`](/en/tmux/3.7c/reference/c-struct-screen-titles/) (attribute)
- [`screen.write_list`](/en/tmux/3.7c/reference/c-struct-screen-write_list/) (attribute)
