Skip to content

TerminalRegionSvgExtensions

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Extension methods for rendering terminal regions to SVG format.

csharp
public static class TerminalRegionSvgExtensions

Inheritance

ObjectTerminalRegionSvgExtensions

Methods

ToSvg(Hex1bTerminalSnapshot, TerminalSvgOptions?)

Renders the terminal snapshot to an SVG string, including cursor position.

Parameters:

Returns: String

An SVG string representation of the terminal snapshot.

csharp
public static string ToSvg(this Hex1bTerminalSnapshot snapshot, TerminalSvgOptions? options = null)

ToSvg(IHex1bTerminalRegion, TerminalSvgOptions?)

Renders the terminal region to an SVG string.

Parameters:

Returns: String

An SVG string representation of the terminal region.

csharp
public static string ToSvg(this IHex1bTerminalRegion region, TerminalSvgOptions? options = null)

Fields

DefaultOptions

Default options for SVG rendering.

Returns: TerminalSvgOptions

csharp
public static readonly TerminalSvgOptions DefaultOptions

Released under the MIT License.