# libtmux.Server.refresh_client

- **Module:** libtmux.Server
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/server.py#L918
- **Page:** https://libtmux.org/en/py/latest/reference/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()
```
