> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usechar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# resolveSupportedDisplayMode

> Generated API reference for resolveSupportedDisplayMode.

# Function: resolveSupportedDisplayMode()

> **resolveSupportedDisplayMode**(`preferred`, `availableModes?`): [`CharDisplayMode`](../type-aliases/CharDisplayMode)

Resolves a preferred display mode against host-supported modes.

An empty `availableModes` array means "no constraint" — the preferred mode
is returned unconditionally. This is intentional: it allows callers to opt
out of mode filtering without a separate code path.

## Parameters

### preferred

[`CharDisplayMode`](../type-aliases/CharDisplayMode)

Preferred mode requested by host policy.

### availableModes?

readonly [`CharDisplayMode`](../type-aliases/CharDisplayMode)\[] = `DEFAULT_AVAILABLE_DISPLAY_MODES`

Supported modes advertised by the host.

## Returns

[`CharDisplayMode`](../type-aliases/CharDisplayMode)

Preferred mode when supported, otherwise the first available mode.
