# TerminalOptions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs)

Options for configuring a terminal session.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class TerminalOptions
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

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

## Properties

- [Columns](/reference/api/csharp/aspire.hosting/terminaloptions/properties.md#columns) : `int` `get; set` -- Gets or sets the initial number of columns for the terminal. The value must be greater than zero. Defaults to 132.
- [Rows](/reference/api/csharp/aspire.hosting/terminaloptions/properties.md#rows) : `int` `get; set` -- Gets or sets the initial number of rows for the terminal. The value must be greater than zero. Defaults to 50.
