# LibTmux.Client.GetAttachedWindowAsync

- **Module:** LibTmux.Client
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Client.Administration.cs#L158
- **Page:** https://libtmux.org/reference/dotnet/libtmux-client-getattachedwindowasync/

```
LibTmux.Client.GetAttachedWindowAsync(cancellationToken: CancellationToken) -> Task<Window?>
```

Reads the window this client is showing now.

## Parameters

- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

The window, or null when the client is showing none.
