Skip to content

Class AnsiCellWriter

Writes the difference between two cell grids as escape sequences: a cursor move to each run of changed cells, a color change where the colors change, and the text. The bytes gather in one buffer that is reused between frames.

Declaration
public sealed class AnsiCellWriter
Declaration
public int Length { get; }
Declaration
public void Reset()

The bytes gathered since Reset, as an array of their own.

Declaration
public byte[] ToArray()

System.Byte[]

Declaration
public void Ascii(string text)
Type Name
System.String text

Appends what turns the shown grid into the next one. With everything, writes every cell. The grids must be the same size.

Declaration
public void Diff(CellSurface shown, CellSurface next, bool everything)
Type Name
DarkEffekt.Terminal.CellSurface shown
DarkEffekt.Terminal.CellSurface next
System.Boolean everything