SpectreConsoleOptions
Configuration options for the Spectre.Console integration.
- Kind:
Class - Namespace: Repl.Spectre
- Assembly:
Repl.Spectre - Source: src/Repl.Spectre/SpectreConsoleOptions.cs
Signature
Section titled “Signature”public sealed class SpectreConsoleOptionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”AddView<T>(Func<T, IRenderable>)
Section titled “AddView<T>(Func<T, IRenderable>)”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)Type Parameters
Section titled “Type Parameters”T: The command result type.
Parameters
Section titled “Parameters”view(Func<T, IRenderable>): Builds a renderable without writing to a console.
Properties
Section titled “Properties”Unicode
Section titled “Unicode”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; }