Table of Contents

Enum CursorStyle

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Defines the style of the terminal cursor, based on ANSI/VT terminal standards.

public enum CursorStyle

Fields

BlinkingBar = 5

Blinking vertical bar cursor (I-beam, commonly used in text editors).

BlinkingBlock = 1

Blinking block cursor (default for most terminals).

BlinkingUnderline = 3

Blinking underline cursor.

Default = 0

The default cursor shape, typically a blinking block.

Hidden = -1

Represents a hidden cursor (no visible cursor).

SteadyBar = 6

Steady (non-blinking) vertical bar cursor (I-beam).

SteadyBlock = 2

Steady (non-blinking) block cursor.

SteadyUnderline = 4

Steady (non-blinking) underline cursor.

Remarks

This enum follows the ANSI/VT DECSCUSR (CSI Ps SP q) sequence standard where Ps indicates: 0 = implementation defined (usually blinking block) 1 = blinking block 2 = steady block 3 = blinking underline 4 = steady underline 5 = blinking bar (vertical I-beam) 6 = steady bar (vertical I-beam)

Drivers map these values to platform-specific APIs: - ANSI terminals: Use DECSCUSR escape sequences directly - Windows Console: Map to CONSOLE_CURSOR_INFO (bVisible and dwSize)

To hide the cursor, use null for the cursor position.