# libtmux.Server.refresh_client

- **Module:** libtmux.Server
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/server.py#L918
- **Page:** https://libtmux.org/reference/py/libtmux-server-refresh_client/

```
libtmux.Server.refresh_client(self, target_client: str | None = None, request_clipboard: bool = False) -> None
```

Refresh a client's display via ``$ tmux refresh-client``.

Requires an attached client.

## Parameters

- `self`
- `target_client` (str | None) — Target client (``-t`` flag).
- `request_clipboard` (bool) — Request the clipboard from the terminal (``-l`` flag,
``tty_clipboard_query``) — the runtime companion to the
``get-clipboard`` option. Requires tmux 3.7+; warns and is
ignored on older tmux (where ``-l`` is the legacy forward form).

## Example

```python
>>> with control_mode() as ctl:
...     server.refresh_client()
```
