Skip to content

SpectreConsoleOptions

Configuration options for the Spectre.Console integration.

public sealed class SpectreConsoleOptions

Registers a Spectre view for an exact runtime type. Registering the same type again replaces its view.

public void AddView<T>(Func<T, IRenderable> view)
  • T: The command result type.
  • view (Func<T, IRenderable>): Builds a renderable without writing to a console.

Gets or sets a value indicating whether Unicode box-drawing characters and symbols are used. When false, Spectre falls back to ASCII. Default is true.

public bool Unicode { get; set; }

bool