Skip to content
ConsoleMonster
Class

LiveSessionOptions

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed
Attributes
Fluent

Configuration for a single-use live session. Set before starting the session.

Inheritance

  • object
  • LiveSessionOptions

Usage

Explore 154 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 67

Accepted by parameters 87

Constructors

public LiveSessionOptions() #

Properties

public LiveMode Mode { get; set; } #

Full screen (default) or an inline area below the cursor. Without a VT console (CI, redirected output) both fall back to stream lines.

public bool? ReducedMotion { get; set; } #

Disables animation and limits live redraws to once a second. Null follows CONSOLEMONSTER_MOTION; accessible mode always enables it.

public bool Live { get; set; } #

Allows live rendering when the terminal supports it; false selects append-only output.

public double InlineHeightFraction { get; set; } #

Maximum fraction of the current terminal height occupied by inline output, between zero (exclusive) and one. Default one.

public double FramesPerSecond { get; set; } #

Maximum frame frequency, clamped to 1โ€“60; defaults to 15.

public bool CaptureConsole { get; set; } #

Captures standard output and error while running; defaults to true.

public string? LogTarget { get; set; } #

Name of the log target, or null to discover the first log target.

public TerminalProfile? Profile { get; set; } #

Profile override, or null for Terminal.Profile.

public CultureInfo? Culture { get; set; } #

The culture for numbers and dates in the session's widgets, overriding the profile's (and CONSOLEMONSTER_CULTURE); null keeps the profile culture, which defaults to the current culture.

public ITheme? Theme { get; set; } #

Theme override, or null for Terminal.Theme.

public ITerminalOutput? Output { get; set; } #

Borrowed output, or null to create and own the terminal output.

public ITerminalTarget? Target { get; set; } #

Where the session draws: its profile, theme and writer (see ITerminalTarget), or null for Terminal.Target at start. LiveSessionOptions.Profile, LiveSessionOptions.Theme and LiveSessionOptions.Output still win when set. Only the console target claims the console, probes widths and watches the font.

public bool TaskbarProgress { get; set; } #

Whether the session drives the terminal's progress indicator (the Windows Terminal tab and taskbar) from its progress bars, lanes, spinners and status, and clears it at the end (default true; see LiveSessionOptions.TaskbarProgress).

public bool NotifyOnFinish { get; set; } #

Whether the session rings the terminal bell when it ends, to call attention to a finished run (default false).

public string? RecordingPath { get; set; } #

UTF-8 recording destination, mutually exclusive with RecordWriter.

public TextWriter? RecordWriter { get; set; } #

Borrowed recording writer; flushed but left open at shutdown.

public SessionRecorder? Recorder { get; set; } #

An in-process SessionRecorder that receives exactly what this session draws, frame by frame: the whole composed screen with its log panel, footer, dialogs and prompts, which LiveSessionOptions.RecordingPath (widget updates replayed into the same definition) cannot hold for an interactive app. The recording follows the window size. The caller owns the recorder and disposes it after the session ends; export it with SessionRecording or Export-ConsoleRecording to HTML, SVG, GIF or APNG. Requires the session to create its own output (no LiveSessionOptions.Output).

public int AutoRecord { get; set; } #

Opt-in automatic recording: when above zero and neither LiveSessionOptions.RecordingPath nor LiveSessionOptions.RecordWriter is set, the session records itself to LiveSessionOptions.AutoRecordFolder and keeps only this many recordings with its LiveSessionOptions.RecordingName (the newest ones; other files are never removed), so the last runs can be rewound with Show-ConsoleReplay. Default 0 (off).

public long AutoRecordMaxBytes { get; set; } #

The most bytes the automatic recordings with one LiveSessionOptions.RecordingName may take together (default 50 MB): older recordings are removed first, and a single recording stops growing at this size.

public string? AutoRecordFolder { get; set; } #

Where automatic recordings go, or null for %LOCALAPPDATA%\ConsoleMonster\Recordings (on Linux and macOS the local application data folder, usually ~/.local/share).

public string? RecordingName { get; set; } #

The name automatic recordings start with (default session), followed by the start time.

public static string DefaultRecordingFolder { get; } #

The default folder for automatic recordings.

public IWidget? Summary { get; set; } #

Widget appended to scrollback after live output ends.

public bool PrintFinalState { get; set; } #

When no LiveSessionOptions.Summary is set, print the final state of the root widget to scrollback after the session ends (default true), so a live dashboard always leaves a record behind.

public TimeSpan StreamHeartbeat { get; set; } #

Interval between line-mode summaries; defaults to ten seconds. Zero disables them.

public bool? StreamTimestamps { get; set; } #

Prefixes each line-mode narration and heartbeat line with the session clock ([mm:ss], or [h:mm:ss] past an hour). Null (the default) enables it when the profile detected a CI environment, where log viewers often lack their own per-line timestamps; true or false forces it. Interactive frames are unaffected.

public bool HandleCancelKey { get; set; } #

Intercepts the first Ctrl+C for cooperative cancellation; defaults to true.

public bool StopOnCancellation { get; set; } #

Stop drawing immediately on cooperative cancellation (default true). False leaves output open until Stop, allowing a runner to drain worker results before its final summary.

public bool Discoverable { get; set; } #

Whether the session can be found through LiveSession.Current (default true), so update cmdlets and prompts started elsewhere reach it. A session that runs other code, such as a test run, turns it off: that code's own updates and prompts then behave as if no dashboard were running.

public int MaxQueuedEvents { get; set; } #

The most widget and log updates, captured console lines included, waiting for the render thread (default LiveSessionOptions.DefaultMaxQueuedEvents; 0 removes the limit). Posting never waits: while the queue is full, new updates are rejected and counted in LiveSession.EventsDropped. The queue only fills when updates arrive faster than they can be applied for a long time, for example while a widget callback blocks the render thread. One-shot console writes and the session's own control events are not limited.

public TimeSpan StopTimeout { get; set; } #

Maximum render-thread join wait; defaults to two seconds. Must be between zero and Int32.MaxValue milliseconds.

public Func<TimeSpan>? Clock { get; set; } #
NoFluent

Optional monotonic time source, sampled relative to its value at Start.

public Action<TimeSpan, CancellationToken>? ReplayDelay { get; set; } #
NoFluent

Optional replay delay implementation; receives the scaled interval and cancellation token.

Fields

public const int DefaultMaxQueuedEvents #

The default for LiveSessionOptions.MaxQueuedEvents: 1,000,000 widget updates.

Value: 1000000

Extension Methods

public static LiveSessionOptions AutoRecord(LiveSessionOptions liveSessionOptions, int value) #

Sets LiveSessionOptions.AutoRecord: Opt-in automatic recording: when above zero and neither LiveSessionOptions.RecordingPath nor LiveSessionOptions.RecordWriter is set, the session records itself to LiveSessionOptions.AutoRecordFolder and keeps only this many recordings with its LiveSessionOptions.RecordingName (the newest ones; other files are never removed), so the last runs can be rewound with Show-ConsoleReplay. Default 0 (off).

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value int required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { AutoRecord = value };    liveSessionOptions.AutoRecord(value);
public static LiveSessionOptions AutoRecordFolder(LiveSessionOptions liveSessionOptions, string? value) #

Sets LiveSessionOptions.AutoRecordFolder: Where automatic recordings go, or null for %LOCALAPPDATA%\ConsoleMonster\Recordings (on Linux and macOS the local application data folder, usually ~/.local/share).

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value string? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { AutoRecordFolder = value };    liveSessionOptions.AutoRecordFolder(value);
public static LiveSessionOptions AutoRecordMaxBytes(LiveSessionOptions liveSessionOptions, long value) #

Sets LiveSessionOptions.AutoRecordMaxBytes: The most bytes the automatic recordings with one LiveSessionOptions.RecordingName may take together (default 50 MB): older recordings are removed first, and a single recording stops growing at this size.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value long required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { AutoRecordMaxBytes = value };    liveSessionOptions.AutoRecordMaxBytes(value);
public static LiveSessionOptions CaptureConsole(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.CaptureConsole: Captures standard output and error while running; defaults to true.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { CaptureConsole = value };    liveSessionOptions.CaptureConsole(value);
public static LiveSessionOptions Culture(LiveSessionOptions liveSessionOptions, CultureInfo? value) #

Sets LiveSessionOptions.Culture: The culture for numbers and dates in the session's widgets, overriding the profile's (and CONSOLEMONSTER_CULTURE); null keeps the profile culture, which defaults to the current culture.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value System.Globalization.CultureInfo? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Culture = value };    liveSessionOptions.Culture(value);
public static LiveSessionOptions Discoverable(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.Discoverable: Whether the session can be found through LiveSession.Current (default true), so update cmdlets and prompts started elsewhere reach it. A session that runs other code, such as a test run, turns it off: that code's own updates and prompts then behave as if no dashboard were running.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Discoverable = value };    liveSessionOptions.Discoverable(value);
public static LiveSessionOptions FramesPerSecond(LiveSessionOptions liveSessionOptions, double value) #

Sets LiveSessionOptions.FramesPerSecond: Maximum frame frequency, clamped to 1โ€“60; defaults to 15.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value double required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { FramesPerSecond = value };    liveSessionOptions.FramesPerSecond(value);
public static LiveSessionOptions HandleCancelKey(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.HandleCancelKey: Intercepts the first Ctrl+C for cooperative cancellation; defaults to true.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { HandleCancelKey = value };    liveSessionOptions.HandleCancelKey(value);
public static LiveSessionOptions InlineHeightFraction(LiveSessionOptions liveSessionOptions, double value) #

Sets LiveSessionOptions.InlineHeightFraction: Maximum fraction of the current terminal height occupied by inline output, between zero (exclusive) and one. Default one.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value double required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { InlineHeightFraction = value };    liveSessionOptions.InlineHeightFraction(value);
public static LiveSessionOptions Live(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.Live: Allows live rendering when the terminal supports it; false selects append-only output.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Live = value };    liveSessionOptions.Live(value);
public static LiveSessionOptions LogTarget(LiveSessionOptions liveSessionOptions, string? value) #

Sets LiveSessionOptions.LogTarget: Name of the log target, or null to discover the first log target.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value string? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { LogTarget = value };    liveSessionOptions.LogTarget(value);
public static LiveSessionOptions MaxQueuedEvents(LiveSessionOptions liveSessionOptions, int value) #

Sets LiveSessionOptions.MaxQueuedEvents: The most widget and log updates, captured console lines included, waiting for the render thread (default LiveSessionOptions.DefaultMaxQueuedEvents; 0 removes the limit). Posting never waits: while the queue is full, new updates are rejected and counted in LiveSession.EventsDropped. The queue only fills when updates arrive faster than they can be applied for a long time, for example while a widget callback blocks the render thread. One-shot console writes and the session's own control events are not limited.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value int required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { MaxQueuedEvents = value };    liveSessionOptions.MaxQueuedEvents(value);
public static LiveSessionOptions Mode(LiveSessionOptions liveSessionOptions, LiveMode value) #

Sets LiveSessionOptions.Mode: Full screen (default) or an inline area below the cursor. Without a VT console (CI, redirected output) both fall back to stream lines.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Live.LiveMode required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Mode = value };    liveSessionOptions.Mode(value);
public static LiveSessionOptions NotifyOnFinish(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.NotifyOnFinish: Whether the session rings the terminal bell when it ends, to call attention to a finished run (default false).

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { NotifyOnFinish = value };    liveSessionOptions.NotifyOnFinish(value);
public static LiveSessionOptions Output(LiveSessionOptions liveSessionOptions, ITerminalOutput? value) #

Sets LiveSessionOptions.Output: Borrowed output, or null to create and own the terminal output.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Rendering.ITerminalOutput? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Output = value };    liveSessionOptions.Output(value);
public static LiveSessionOptions PrintFinalState(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.PrintFinalState: When no LiveSessionOptions.Summary is set, print the final state of the root widget to scrollback after the session ends (default true), so a live dashboard always leaves a record behind.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { PrintFinalState = value };    liveSessionOptions.PrintFinalState(value);
public static LiveSessionOptions Profile(LiveSessionOptions liveSessionOptions, TerminalProfile? value) #

Sets LiveSessionOptions.Profile: Profile override, or null for Terminal.Profile.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Capabilities.TerminalProfile? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Profile = value };    liveSessionOptions.Profile(value);
public static LiveSessionOptions Recorder(LiveSessionOptions liveSessionOptions, SessionRecorder? value) #

Sets LiveSessionOptions.Recorder: An in-process SessionRecorder that receives exactly what this session draws, frame by frame: the whole composed screen with its log panel, footer, dialogs and prompts, which LiveSessionOptions.RecordingPath (widget updates replayed into the same definition) cannot hold for an interactive app. The recording follows the window size. The caller owns the recorder and disposes it after the session ends; export it with SessionRecording or Export-ConsoleRecording to HTML, SVG, GIF or APNG. Requires the session to create its own output (no LiveSessionOptions.Output).

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Sessions.SessionRecorder? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Recorder = value };    liveSessionOptions.Recorder(value);
public static LiveSessionOptions RecordingName(LiveSessionOptions liveSessionOptions, string? value) #

Sets LiveSessionOptions.RecordingName: The name automatic recordings start with (default session), followed by the start time.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value string? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { RecordingName = value };    liveSessionOptions.RecordingName(value);
public static LiveSessionOptions RecordingPath(LiveSessionOptions liveSessionOptions, string? value) #

Sets LiveSessionOptions.RecordingPath: UTF-8 recording destination, mutually exclusive with RecordWriter.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value string? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { RecordingPath = value };    liveSessionOptions.RecordingPath(value);
public static LiveSessionOptions RecordWriter(LiveSessionOptions liveSessionOptions, TextWriter? value) #

Sets LiveSessionOptions.RecordWriter: Borrowed recording writer; flushed but left open at shutdown.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value System.IO.TextWriter? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { RecordWriter = value };    liveSessionOptions.RecordWriter(value);
public static LiveSessionOptions ReducedMotion(LiveSessionOptions liveSessionOptions, bool? value) #

Sets LiveSessionOptions.ReducedMotion: Disables animation and limits live redraws to once a second. Null follows CONSOLEMONSTER_MOTION; accessible mode always enables it.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { ReducedMotion = value };    liveSessionOptions.ReducedMotion(value);
public static LiveSessionOptions StopOnCancellation(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.StopOnCancellation: Stop drawing immediately on cooperative cancellation (default true). False leaves output open until Stop, allowing a runner to drain worker results before its final summary.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { StopOnCancellation = value };    liveSessionOptions.StopOnCancellation(value);
public static LiveSessionOptions StopTimeout(LiveSessionOptions liveSessionOptions, TimeSpan value) #

Sets LiveSessionOptions.StopTimeout: Maximum render-thread join wait; defaults to two seconds. Must be between zero and Int32.MaxValue milliseconds.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value System.TimeSpan required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { StopTimeout = value };    liveSessionOptions.StopTimeout(value);
public static LiveSessionOptions StreamHeartbeat(LiveSessionOptions liveSessionOptions, TimeSpan value) #

Sets LiveSessionOptions.StreamHeartbeat: Interval between line-mode summaries; defaults to ten seconds. Zero disables them.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value System.TimeSpan required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { StreamHeartbeat = value };    liveSessionOptions.StreamHeartbeat(value);
public static LiveSessionOptions StreamTimestamps(LiveSessionOptions liveSessionOptions, bool? value) #

Sets LiveSessionOptions.StreamTimestamps: Prefixes each line-mode narration and heartbeat line with the session clock ([mm:ss], or [h:mm:ss] past an hour). Null (the default) enables it when the profile detected a CI environment, where log viewers often lack their own per-line timestamps; true or false forces it. Interactive frames are unaffected.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { StreamTimestamps = value };    liveSessionOptions.StreamTimestamps(value);
public static LiveSessionOptions Summary(LiveSessionOptions liveSessionOptions, IWidget? value) #

Sets LiveSessionOptions.Summary: Widget appended to scrollback after live output ends.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Summary = value };    liveSessionOptions.Summary(value);
public static LiveSessionOptions Target(LiveSessionOptions liveSessionOptions, ITerminalTarget? value) #

Sets LiveSessionOptions.Target: Where the session draws: its profile, theme and writer (see ITerminalTarget), or null for Terminal.Target at start. LiveSessionOptions.Profile, LiveSessionOptions.Theme and LiveSessionOptions.Output still win when set. Only the console target claims the console, probes widths and watches the font.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Output.ITerminalTarget? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Target = value };    liveSessionOptions.Target(value);
public static LiveSessionOptions TaskbarProgress(LiveSessionOptions liveSessionOptions, bool value = true) #

Sets LiveSessionOptions.TaskbarProgress: Whether the session drives the terminal's progress indicator (the Windows Terminal tab and taskbar) from its progress bars, lanes, spinners and status, and clears it at the end (default true; see LiveSessionOptions.TaskbarProgress).

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { TaskbarProgress = value };    liveSessionOptions.TaskbarProgress(value);
public static LiveSessionOptions Theme(LiveSessionOptions liveSessionOptions, ITheme? value) #

Sets LiveSessionOptions.Theme: Theme override, or null for Terminal.Theme.

Parameters

liveSessionOptions ConsoleMonster.Live.LiveSessionOptions required
The instance.
value ConsoleMonster.Styling.ITheme? required
The value.

Returns

LiveSessionOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ConsoleMonster.Live.LiveSessionOptions { Theme = value };    liveSessionOptions.Theme(value);