Skip to main content

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.

Function: resolveSupportedDisplayMode()

resolveSupportedDisplayMode(preferred, availableModes?): 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 Preferred mode requested by host policy.

availableModes?

readonly CharDisplayMode[] = DEFAULT_AVAILABLE_DISPLAY_MODES Supported modes advertised by the host.

Returns

CharDisplayMode Preferred mode when supported, otherwise the first available mode.