# server_client_reset_state

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1759
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-server-client-c-server_client_reset_state/

```c
static void server_client_reset_state(struct client *)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`server_client_loop`](/en/tmux/3.7c/reference/c-function-server_client_loop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1532)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1788)
- [`log_get_level`](/en/tmux/3.7c/reference/c-function-log_get_level/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1787)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1798)
- [`screen_redraw_get_visible_ranges`](/en/tmux/3.7c/reference/c-function-screen_redraw_get_visible_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1821)
- [`screen_redraw_is_visible`](/en/tmux/3.7c/reference/c-function-screen_redraw_is_visible/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1822)
- [`server_client_get_pane`](/en/tmux/3.7c/reference/c-function-server_client_get_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1763)
- [`status_at_line`](/en/tmux/3.7c/reference/c-function-status_at_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1825)
- [`status_line_size`](/en/tmux/3.7c/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1802)
- [`status_prompt_line_at`](/en/tmux/3.7c/reference/c-function-status_prompt_line_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1800)
- [`tty_cursor`](/en/tmux/3.7c/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1835)
- [`tty_margin_off`](/en/tmux/3.7c/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1794)
- [`tty_region_off`](/en/tmux/3.7c/reference/c-function-tty_region_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1793)
- [`tty_reset`](/en/tmux/3.7c/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1862)
- [`tty_sync_end`](/en/tmux/3.7c/reference/c-function-tty_sync_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1865)
- [`tty_update_mode`](/en/tmux/3.7c/reference/c-function-tty_update_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1861)
- [`tty_window_offset`](/en/tmux/3.7c/reference/c-function-tty_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1811)

## Other function references

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

## Referenced declarations

- [`status_line.active`](/en/tmux/3.7c/reference/c-struct-status_line-active/) (attribute)
- [`ALL_MOUSE_MODES`](/en/tmux/3.7c/reference/c-define-tmux-h-all_mouse_modes/) (constant)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_SUSPENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-client_suspended/) (constant)
- [`session.curw`](/en/tmux/3.7c/reference/c-struct-session-curw/) (attribute)
- [`screen.cx`](/en/tmux/3.7c/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.7c/reference/c-struct-tty-flags/) (attribute)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`MODE_BRACKETPASTE`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_bracketpaste/) (constant)
- [`MODE_CURSOR`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`MODE_MOUSE_ALL`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_all/) (constant)
- [`MODE_MOUSE_BUTTON`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_button/) (constant)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`session.options`](/en/tmux/3.7c/reference/c-struct-session-options/) (attribute)
- [`client.overlay_data`](/en/tmux/3.7c/reference/c-struct-client-overlay_data/) (attribute)
- [`client.overlay_draw`](/en/tmux/3.7c/reference/c-struct-client-overlay_draw/) (attribute)
- [`client.overlay_mode`](/en/tmux/3.7c/reference/c-struct-client-overlay_mode/) (attribute)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`client.prompt_cursor`](/en/tmux/3.7c/reference/c-struct-client-prompt_cursor/) (attribute)
- [`client.prompt_string`](/en/tmux/3.7c/reference/c-struct-client-prompt_string/) (attribute)
- [`window_pane.screen`](/en/tmux/3.7c/reference/c-struct-window_pane-screen/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`client.status`](/en/tmux/3.7c/reference/c-struct-client-status/) (attribute)
- [`tty.sy`](/en/tmux/3.7c/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`TTY_BLOCK`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_block/) (constant)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
- [`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)
