Table of Contents

Interface ICliRenderSink

Namespace
ItTiger.TigerCli.Terminal
Assembly
ItTiger.TigerCli.dll
Sink abstraction used by the render pipeline to write styled text segments.
public interface ICliRenderSink

Properties

MaxHeight

Hard height constraint reported to grid measurement, or null when unbounded.
int? MaxHeight { get; }

Property Value

int?

MaxWidth

Hard width constraint reported to grid measurement, or null when unbounded.
int? MaxWidth { get; }

Property Value

int?

SoftMaxHeight

Soft height constraint reported to grid measurement, or null when unbounded.
int? SoftMaxHeight { get; }

Property Value

int?

SoftMaxWidth

Soft width constraint reported to grid measurement, or null when unbounded.
int? SoftMaxWidth { get; }

Property Value

int?

Methods

Flush()

Flushes buffered output.
void Flush()

NewLine()

Writes a line break.
void NewLine()

Reset()

Resets sink state.
void Reset()

SetWindowTitle(string)

Sets the terminal/window title when the sink supports terminal controls; default is no-op.
void SetWindowTitle(string title)

Parameters

title string

Write(CliTextSegment)

Writes a styled text segment.
void Write(CliTextSegment segment)

Parameters

segment CliTextSegment