Skip to content
ConsoleMonster
Class

RecordingExportOptions

ConsoleMonster.Export

Namespace
ConsoleMonster.Export
Assembly
ConsoleMonster
Modifiers
sealed
Attributes
Fluent

How a recording is exported: screen size, frame rate, speed, theme, font and window frame.

Inheritance

  • object
  • RecordingExportOptions

Usage

Explore 130 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 58

Accepted by parameters 72

Constructors

public RecordingExportOptions() #

Methods

public RecordingExportOptions Clone() #

Copies export settings and source markers without sharing mutable collections.

public ExportOptions ToFrameOptions() #

Resolves and validates the frame geometry shared by recording serializers and graphics providers.

Returns

ExportOptions A new frame-options object; the recording configuration is not modified.

Properties

public IList<RecordingMarker> Markers { get; } #

Chapters and export instructions at source recording times.

public int Width { get; set; } #

Screen width in cells (zero detects, fallback 100).

public int Height { get; set; } #

Screen height in cells (default 30).

public ExportTheme Theme { get; set; } #

Auto uses a terminal recording's captured palette when present, otherwise Dark; explicit themes override it.

public ITheme? CustomTheme { get; set; } #

A custom theme to render with (default: the built-in dark or light theme).

public string? Title { get; set; } #

The title (page title, title bar, asciicast title).

public bool WindowChrome { get; set; } #

Enables the chosen RecordingExportOptions.ChromeStyle. False always hides chrome; style None also hides it.

public WindowChromeStyle ChromeStyle { get; set; } #

The title bar style when WindowChrome is true (default MacOS). None hides chrome.

public string FontFamily { get; set; } #

The font stack (see ExportOptions.DefaultFontFamily).

public double FontSize { get; set; } #

The font size in pixels (default 14).

public double LineHeight { get; set; } #

The cell height as a multiple of the font size (default 1.2).

public double FramesPerSecond { get; set; } #

Frames per second sampled from the recording (default 10; identical frames are merged).

public int MaxFrames { get; set; } #

Regular sample limit; longer recordings are sampled less often (default 900). Exact marker and trim boundaries are also kept.

public double Speed { get; set; } #

Playback speed multiplier baked into the export (default 1).

public TimeSpan HoldLastFrame { get; set; } #

How long the last frame stays before the animation loops or ends (default 2 seconds).

public bool Loop { get; set; } #

SVG only: loops the animation (default true).

public GlyphTier Glyphs { get; set; } #

The glyph tier (default GlyphTier.Full).

public CultureInfo? Culture { get; set; } #

The culture for numbers and dates (default: the current culture).

public int Padding { get; set; } #

Space around the screen in pixels (default 12).

public DateTimeOffset? Timestamp { get; set; } #

Asciicast only: the recording time written to the header (default: none).

public RecordingPace Pace { get; set; } #

Reading pace. An explicitly assigned value overrides recorded pace directives.

public TimeSpan IdleLimit { get; set; } #

Maximum source delay on an unchanged screen after speed scaling; zero disables capping (default 2 seconds). Reading and explicit holds are never capped.

public TimeSpan ChapterHold { get; set; } #

Extra time to freeze the screen at each chapter marker (default zero).

public TimeSpan? TrimStart { get; set; } #

Inclusive source time at which to begin; null begins at zero.

public TimeSpan? TrimEnd { get; set; } #

Exclusive source time at which to end; null includes the final screen.

public string? TrimStartChapter { get; set; } #

Begin at this chapter's marker. Cannot be combined with TrimStart.

public string? TrimEndChapter { get; set; } #

End before this chapter's marker. Cannot be combined with TrimEnd.

public IDictionary<string, double> ChapterSpeeds { get; } #

Speed multipliers by chapter label, multiplied by Speed. Explicit holds keep their requested duration.

Extension Methods

public static RecordingExportOptions ChapterHold(RecordingExportOptions recordingExportOptions, TimeSpan value) #

Sets RecordingExportOptions.ChapterHold: Extra time to freeze the screen at each chapter marker (default zero).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.TimeSpan required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { ChapterHold = value };    recordingExportOptions.ChapterHold(value);
public static RecordingExportOptions ChromeStyle(RecordingExportOptions recordingExportOptions, WindowChromeStyle value) #

Sets RecordingExportOptions.ChromeStyle: The title bar style when WindowChrome is true (default MacOS). None hides chrome.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value ConsoleMonster.Export.WindowChromeStyle required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { ChromeStyle = value };    recordingExportOptions.ChromeStyle(value);
public static RecordingExportOptions Culture(RecordingExportOptions recordingExportOptions, CultureInfo? value) #

Sets RecordingExportOptions.Culture: The culture for numbers and dates (default: the current culture).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.Globalization.CultureInfo? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Culture = value };    recordingExportOptions.Culture(value);
public static RecordingExportOptions CustomTheme(RecordingExportOptions recordingExportOptions, ITheme? value) #

Sets RecordingExportOptions.CustomTheme: A custom theme to render with (default: the built-in dark or light theme).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value ConsoleMonster.Styling.ITheme? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { CustomTheme = value };    recordingExportOptions.CustomTheme(value);
public static RecordingExportOptions FontFamily(RecordingExportOptions recordingExportOptions, string value) #

Sets RecordingExportOptions.FontFamily: The font stack (see ExportOptions.DefaultFontFamily).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value string required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { FontFamily = value };    recordingExportOptions.FontFamily(value);
public static RecordingExportOptions FontSize(RecordingExportOptions recordingExportOptions, double value) #

Sets RecordingExportOptions.FontSize: The font size in pixels (default 14).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value double required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { FontSize = value };    recordingExportOptions.FontSize(value);
public static RecordingExportOptions FramesPerSecond(RecordingExportOptions recordingExportOptions, double value) #

Sets RecordingExportOptions.FramesPerSecond: Frames per second sampled from the recording (default 10; identical frames are merged).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value double required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { FramesPerSecond = value };    recordingExportOptions.FramesPerSecond(value);
public static RecordingExportOptions Glyphs(RecordingExportOptions recordingExportOptions, GlyphTier value) #

Sets RecordingExportOptions.Glyphs: The glyph tier (default GlyphTier.Full).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value ConsoleMonster.Capabilities.GlyphTier required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Glyphs = value };    recordingExportOptions.Glyphs(value);
public static RecordingExportOptions Height(RecordingExportOptions recordingExportOptions, int value) #

Sets RecordingExportOptions.Height: Screen height in cells (default 30).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value int required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Height = value };    recordingExportOptions.Height(value);
public static RecordingExportOptions HoldLastFrame(RecordingExportOptions recordingExportOptions, TimeSpan value) #

Sets RecordingExportOptions.HoldLastFrame: How long the last frame stays before the animation loops or ends (default 2 seconds).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.TimeSpan required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { HoldLastFrame = value };    recordingExportOptions.HoldLastFrame(value);
public static RecordingExportOptions IdleLimit(RecordingExportOptions recordingExportOptions, TimeSpan value) #

Sets RecordingExportOptions.IdleLimit: Maximum source delay on an unchanged screen after speed scaling; zero disables capping (default 2 seconds). Reading and explicit holds are never capped.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.TimeSpan required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { IdleLimit = value };    recordingExportOptions.IdleLimit(value);
public static RecordingExportOptions LineHeight(RecordingExportOptions recordingExportOptions, double value) #

Sets RecordingExportOptions.LineHeight: The cell height as a multiple of the font size (default 1.2).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value double required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { LineHeight = value };    recordingExportOptions.LineHeight(value);
public static RecordingExportOptions Loop(RecordingExportOptions recordingExportOptions, bool value = true) #

Sets RecordingExportOptions.Loop: SVG only: loops the animation (default true).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Loop = value };    recordingExportOptions.Loop(value);
public static RecordingExportOptions Marker(RecordingExportOptions recordingExportOptions, RecordingMarker item) #

Adds an item to RecordingExportOptions.Markers: Chapters and export instructions at source recording times.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
item ConsoleMonster.Export.RecordingMarker required
The item.

Returns

RecordingExportOptions The same instance.
public static RecordingExportOptions Markers(RecordingExportOptions recordingExportOptions, IEnumerable<RecordingMarker> items) #

Adds items to RecordingExportOptions.Markers: Chapters and export instructions at source recording times.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Export.RecordingMarker> required
The items, in order.

Returns

RecordingExportOptions The same instance.
public static RecordingExportOptions MaxFrames(RecordingExportOptions recordingExportOptions, int value) #

Sets RecordingExportOptions.MaxFrames: Regular sample limit; longer recordings are sampled less often (default 900). Exact marker and trim boundaries are also kept.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value int required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { MaxFrames = value };    recordingExportOptions.MaxFrames(value);
public static RecordingExportOptions Pace(RecordingExportOptions recordingExportOptions, RecordingPace value) #

Sets RecordingExportOptions.Pace: Reading pace. An explicitly assigned value overrides recorded pace directives.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value ConsoleMonster.Export.RecordingPace required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Pace = value };    recordingExportOptions.Pace(value);
public static RecordingExportOptions Padding(RecordingExportOptions recordingExportOptions, int value) #

Sets RecordingExportOptions.Padding: Space around the screen in pixels (default 12).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value int required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Padding = value };    recordingExportOptions.Padding(value);
public static RecordingExportOptions Speed(RecordingExportOptions recordingExportOptions, double value) #

Sets RecordingExportOptions.Speed: Playback speed multiplier baked into the export (default 1).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value double required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Speed = value };    recordingExportOptions.Speed(value);
public static RecordingExportOptions Theme(RecordingExportOptions recordingExportOptions, ExportTheme value) #

Sets RecordingExportOptions.Theme: Auto uses a terminal recording's captured palette when present, otherwise Dark; explicit themes override it.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value ConsoleMonster.Export.ExportTheme required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Theme = value };    recordingExportOptions.Theme(value);
public static RecordingExportOptions Timestamp(RecordingExportOptions recordingExportOptions, DateTimeOffset? value) #

Sets RecordingExportOptions.Timestamp: Asciicast only: the recording time written to the header (default: none).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.DateTimeOffset? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Timestamp = value };    recordingExportOptions.Timestamp(value);
public static RecordingExportOptions Title(RecordingExportOptions recordingExportOptions, string? value) #

Sets RecordingExportOptions.Title: The title (page title, title bar, asciicast title).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value string? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Title = value };    recordingExportOptions.Title(value);
public static RecordingExportOptions TrimEnd(RecordingExportOptions recordingExportOptions, TimeSpan? value) #

Sets RecordingExportOptions.TrimEnd: Exclusive source time at which to end; null includes the final screen.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.TimeSpan? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { TrimEnd = value };    recordingExportOptions.TrimEnd(value);
public static RecordingExportOptions TrimEndChapter(RecordingExportOptions recordingExportOptions, string? value) #

Sets RecordingExportOptions.TrimEndChapter: End before this chapter's marker. Cannot be combined with TrimEnd.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value string? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { TrimEndChapter = value };    recordingExportOptions.TrimEndChapter(value);
public static RecordingExportOptions TrimStart(RecordingExportOptions recordingExportOptions, TimeSpan? value) #

Sets RecordingExportOptions.TrimStart: Inclusive source time at which to begin; null begins at zero.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value System.TimeSpan? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { TrimStart = value };    recordingExportOptions.TrimStart(value);
public static RecordingExportOptions TrimStartChapter(RecordingExportOptions recordingExportOptions, string? value) #

Sets RecordingExportOptions.TrimStartChapter: Begin at this chapter's marker. Cannot be combined with TrimStart.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value string? required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { TrimStartChapter = value };    recordingExportOptions.TrimStartChapter(value);
public static RecordingExportOptions Width(RecordingExportOptions recordingExportOptions, int value) #

Sets RecordingExportOptions.Width: Screen width in cells (zero detects, fallback 100).

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value int required
The value.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { Width = value };    recordingExportOptions.Width(value);
public static RecordingExportOptions WindowChrome(RecordingExportOptions recordingExportOptions, bool value = true) #

Sets RecordingExportOptions.WindowChrome: Enables the chosen RecordingExportOptions.ChromeStyle. False always hides chrome; style None also hides it.

Parameters

recordingExportOptions ConsoleMonster.Export.RecordingExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RecordingExportOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ConsoleMonster.Export.RecordingExportOptions { WindowChrome = value };    recordingExportOptions.WindowChrome(value);