Code/SboxSuperuser/Core/Prefixes/LineRun.cs

A tiny data type in the Superuser console library. Represents one run of text in a rendered line: the string, its EffectColor, a leading gap measured in character 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 );