Raxol.Headless.TextCapture (Raxol v2.6.0)

View Source

Converts a Raxol.Terminal.ScreenBuffer into a plain text string.

Used by Raxol.Headless to produce text screenshots of headless sessions.

Summary

Functions

Captures the screen buffer content as a trimmed text string.

Functions

capture(buffer)

@spec capture(Raxol.Terminal.ScreenBuffer.t() | nil) :: String.t()

Captures the screen buffer content as a trimmed text string.

Each row is joined with newlines, trailing whitespace per line is trimmed, and trailing empty lines are removed.