SboxSuperuser/Core/Prefixes/LineRun.cs

A tiny readonly record struct in the SboxSuperuser console rendering code. Holds one stretch of a rendered line: text, its EffectColor, a leading gap measured in letter widths, and bold/italic flags.

using SboxSuperuser.Core.Effects;

namespace SboxSuperuser.Core.Prefixes;

/// <summary>A stretch of a rendered line in one style. Gap is empty space before it, in letter widths.</summary>
internal readonly record struct LineRun( string Text, EffectColor Color, float Gap, bool Bold, bool Italic );