# TerminalInteractionOptions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/IInteractionService.cs)
- Inherits: [InteractionOptions](/reference/api/csharp/aspire.hosting/interactionoptions.md)

Options for displaying a caller-owned terminal in an interaction dialog.

## Definition

```csharp
namespace Aspire.Hosting;

public class TerminalInteractionOptions
    : Aspire.Hosting.InteractionOptions
{
    // ...
}
```

## Remarks

Set [InteractionOptions.PrimaryButtonText](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#primarybuttontext) to show a cancel button; by default there is no button. Secondary and dismiss buttons are not shown. The terminal's lifetime is independent of these options.

## Constructors

- [TerminalInteractionOptions](/reference/api/csharp/aspire.hosting/terminalinteractionoptions/constructors.md#constructor)

## Properties

- [Title](/reference/api/csharp/aspire.hosting/terminalinteractionoptions/properties.md#title) : `string?` `get; set` -- Gets or sets the optional dialog title. No title is displayed by default.
- [Work](/reference/api/csharp/aspire.hosting/terminalinteractionoptions/properties.md#work) : `Func<TerminalContext, Task>` `get; set` -- Gets or sets optional asynchronous work to run while the terminal dialog is displayed.
