# LibTmux.Pane.SendTextAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Pane.Input.cs#L114
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-pane-sendtextasync/

```
LibTmux.Pane.SendTextAsync(text: string, enter: bool, cancellationToken: CancellationToken) -> Task
```

Types text into the pane.

## Parameters

- `text` (`string`): The text to type.
- `enter` (`bool`): Whether Enter follows the text.
- `cancellationToken` (`CancellationToken`): Cancels the tmux commands.

## Raises

- [`ArgumentException`](https://learn.microsoft.com/dotnet/api/system.argumentexception): The text contains NUL.
- [`LibTmuxException`](/en/csharp/latest/reference/libtmux-libtmuxexception/): Text was sent, but Enter failed. Its dispatch state is unknown, so the
whole request must not be retried.
