# tty_update_client_offset

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1030
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty_update_client_offset/

```c
void tty_update_client_offset(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_refresh_client_exec`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L251)
- [`server_client_set_session`](/en/tmux/latest/reference/c-function-server_client_set_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L423)
- [`tty_update_window_offset`](/en/tmux/latest/reference/c-function-tty_update_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1024)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1044)
- [`tty_window_offset1`](/en/tmux/latest/reference/c-function-tty-c-tty_window_offset1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1037)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_REDRAWSTATUS`](/en/tmux/latest/reference/c-define-tmux-h-client_redrawstatus/) (constant)
- [`CLIENT_REDRAWWINDOW`](/en/tmux/latest/reference/c-define-tmux-h-client_redrawwindow/) (constant)
- [`CLIENT_TERMINAL`](/en/tmux/latest/reference/c-define-tmux-h-client_terminal/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`tty.oflag`](/en/tmux/latest/reference/c-struct-tty-oflag/) (attribute)
- [`tty.oox`](/en/tmux/latest/reference/c-struct-tty-oox/) (attribute)
- [`tty.ooy`](/en/tmux/latest/reference/c-struct-tty-ooy/) (attribute)
- [`tty.osx`](/en/tmux/latest/reference/c-struct-tty-osx/) (attribute)
- [`tty.osy`](/en/tmux/latest/reference/c-struct-tty-osy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
