Table of Contents

Namespace SharpConsoleUI.Diagnostics.Snapshots

Classes

AnsiLinesSnapshot

Captures the ANSI-encoded output lines from CharacterBuffer.ToLines(). Used to validate ANSI generation and optimization.

AnsiSegment

Represents a segment of a line (either text or ANSI code).

CharacterBufferSnapshot

Captures the state of a CharacterBuffer at a specific point in time. Used for validation, debugging, and regression testing.

ConsoleBufferSnapshot

Captures the state of the ConsoleBuffer's front and back buffers. Used to validate double-buffering and dirty cell detection.

RenderOutputSnapshot

Captures the final console output string sent to Console.Write(). Used to validate actual console output and measure bytes written.

Structs

ConsoleCell

Represents a cell in the console buffer (character + ANSI escape sequence).

Enums

AnsiSegmentType

Type of segment in a parsed ANSI line.