# LibTmux.Client.GetAttachedWindowAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Client.Administration.cs#L161
- **Page:** https://libtmux.org/en/csharp/latest/reference/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.
