Enum CursorStyle
Defines the style of the terminal cursor, based on ANSI/VT terminal standards.
public enum CursorStyle
Fields
BlinkingBar = 5Blinking vertical bar cursor (I-beam, commonly used in text editors).
BlinkingBlock = 1Blinking block cursor (default for most terminals).
BlinkingUnderline = 3Blinking underline cursor.
Default = 0The default cursor shape, typically a blinking block.
Hidden = -1Represents a hidden cursor (no visible cursor).
SteadyBar = 6Steady (non-blinking) vertical bar cursor (I-beam).
SteadyBlock = 2Steady (non-blinking) block cursor.
SteadyUnderline = 4Steady (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.