Struct ScrollbackAttributeRun
A styled span within a scrollback line, covering a range of characters that share the same CellAttributes.
Inherited Members
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
public readonly struct ScrollbackAttributeRun
Remarks
Positions index the plain text of the line, after any markup has been removed, so they line up with the characters the renderer actually stamps into cells.
Constructors
ScrollbackAttributeRun(int, int, CellAttributes)
Creates a new attribute run.
Declaration
public ScrollbackAttributeRun(int start, int length, CellAttributes attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| int | start | The index of the first character the run covers. |
| int | length | The number of characters the run covers. |
| CellAttributes | attributes | The attributes that apply across the run. |
Fields
Attributes
The attributes that apply across the run.
Declaration
public readonly CellAttributes Attributes
Field Value
| Type | Description |
|---|---|
| CellAttributes |
Length
The number of characters the run covers.
Declaration
public readonly int Length
Field Value
| Type | Description |
|---|---|
| int |
Start
The index of the first character the run covers.
Declaration
public readonly int Start
Field Value
| Type | Description |
|---|---|
| int |