Skip to content

UnderlineStyle

Namespace: Hex1b

Assembly: Hex1b.dll

Specifies the visual style of underline decoration on a terminal cell. Corresponds to SGR 4:x sub-parameter values.

csharp
public enum UnderlineStyle : byte

Fields

Curly

Curly/wavy underline (SGR 4:3). Used by editors like Kakoune for diagnostics.

Returns: UnderlineStyle

csharp
Curly = 3

Dashed

Dashed underline (SGR 4:5).

Returns: UnderlineStyle

csharp
Dashed = 5

Dotted

Dotted underline (SGR 4:4).

Returns: UnderlineStyle

csharp
Dotted = 4

Double

Double underline (SGR 4:2 or SGR 21).

Returns: UnderlineStyle

csharp
Double = 2

None

No underline (SGR 4:0 or SGR 24).

Returns: UnderlineStyle

csharp
None = 0

Single

Single straight underline (SGR 4 or SGR 4:1). This is the default when SGR 4 is used without a sub-parameter.

Returns: UnderlineStyle

csharp
Single = 1

Released under the MIT License.