Class ScreenBuffer
A grid of cells plus a scrollback ring. Row 0 is the top of the live screen; scrollback rows are addressed with negative indices through GetRow.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class ScreenBufferProperties
Section titled “Properties”public int Cols { get; }public int Rows { get; }MaxScrollback
Section titled “MaxScrollback”public int MaxScrollback { get; }ScrollbackCount
Section titled “ScrollbackCount”public int ScrollbackCount { get; }Methods
Section titled “Methods”GetRow(int)
Section titled “GetRow(int)”Live row for y in [0, Rows), scrollback for y in [-ScrollbackCount, 0). Read only: the emulator owns the cells.
public ReadOnlySpan<Cell> GetRow(int y)Returns
Section titled “Returns”System.ReadOnlySpan<DarkEffekt.Terminal.Cell>
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
y |
GetLineKind(int)
Section titled “GetLineKind(int)”How row y is drawn. Scrollback rows keep theirs too.
public LineKind GetLineKind(int y)Returns
Section titled “Returns”Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
y |
ColumnsOf(int)
Section titled “ColumnsOf(int)”The columns a row shows: half of them on a double-width or double-height line.
public int ColumnsOf(int y)Returns
Section titled “Returns”System.Int32
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
y |