# TerminalOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [TerminalOptions](/reference/api/csharp/aspire.hosting/terminaloptions.md)
- Kind: `Properties`
- Members: `2`

Options for configuring a terminal session.

<a id="columns"></a>

## Columns

- Name: `Columns`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs)

Gets or sets the initial number of columns for the terminal. The value must be greater than zero. Defaults to 132.

```csharp
public int Columns { get; set; }
```

## Exceptions

- `ArgumentOutOfRangeException` -- Thrown when set to zero or a negative value.

## Remarks

Setting either dimension makes the dashboard's Terminals page adopt the producer's current grid instead of automatically fitting it to the view.

<a id="rows"></a>

## Rows

- Name: `Rows`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs)

Gets or sets the initial number of rows for the terminal. The value must be greater than zero. Defaults to 50.

```csharp
public int Rows { get; set; }
```

## Exceptions

- `ArgumentOutOfRangeException` -- Thrown when set to zero or a negative value.

## Remarks

Setting either dimension makes the dashboard's Terminals page adopt the producer's current grid instead of automatically fitting it to the view.
