# tty_update_client_offset

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

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

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.2a/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-attach-session.c#L130)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L323)
- [`cmd_refresh_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-refresh-client.c#L169)
- [`cmd_switch_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-switch-client.c#L142)
- [`server_destroy_session`](/en/tmux/3.2a/reference/c-function-server_destroy_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L456)
- [`tty_update_window_offset`](/en/tmux/3.2a/reference/c-function-tty_update_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L862)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L882)
- [`tty_window_offset1`](/en/tmux/3.2a/reference/c-function-tty-c-tty_window_offset1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L875)

## Referenced declarations

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