Skip to content

CellAttributes

Namespace: Hex1b

Assembly: Hex1b.dll

Text styling attributes that can be applied to terminal cells. These correspond to SGR (Select Graphic Rendition) parameters. Multiple attributes can be combined using bitwise OR.

csharp
[Flags]
public enum CellAttributes : ushort

Fields

Blinking text (SGR 5).

Returns: CellAttributes

csharp
Blink = 16

Bold

Bold or increased intensity (SGR 1).

Returns: CellAttributes

csharp
Bold = 1

Dim

Dim or decreased intensity (SGR 2).

Returns: CellAttributes

csharp
Dim = 2

Hidden

Hidden / invisible text (SGR 8).

Returns: CellAttributes

csharp
Hidden = 64

Italic

Italic text (SGR 3).

Returns: CellAttributes

csharp
Italic = 4

None

No attributes applied.

Returns: CellAttributes

csharp
None = 0

Overline

Overline (SGR 53).

Returns: CellAttributes

csharp
Overline = 256

Protected

Cell is protected (DECSCA). Protected cells are immune to selective erase operations (DECSED/DECSEL) but can still be erased by normal ED/EL.

Returns: CellAttributes

csharp
Protected = 2048

Reverse

Reverse video / inverse (SGR 7).

Returns: CellAttributes

csharp
Reverse = 32

Sixel

Cell contains Sixel graphics data.

Returns: CellAttributes

csharp
Sixel = 512

SoftWrap

Cell is a soft-wrap point: content continues on the next row without a logical line break. Set on the last cell of a row when the cursor wraps at the right margin. Used by the reflow engine to identify logical lines that span multiple rows.

Returns: CellAttributes

csharp
SoftWrap = 1024

Strikethrough

Strikethrough / crossed out text (SGR 9).

Returns: CellAttributes

csharp
Strikethrough = 128

Underline

Underlined text (SGR 4).

Returns: CellAttributes

csharp
Underline = 8

Released under the MIT License.