Skip to content

Editor.UpdateCursor should not override the default cursor style #143

@tig

Description

@tig

Problem

\Editor.Drawing.cs\ line 365 hardcodes \CursorStyle.BlinkingBar\ when positioning the cursor:

\\csharp
Cursor = new Cursor { Position = screen, Style = CursorStyle.BlinkingBar };
\\

This overrides whatever cursor style the user or terminal has configured as the default. The \Editor\ should only set the cursor position and visibility, not force a specific style.

Expected behavior

\UpdateCursor()\ should set \Cursor.Position\ without changing \Cursor.Style, letting the default style (from the user's terminal or TG configuration) take effect.

Location

  • \src/Terminal.Gui.Editor/Editor.Drawing.cs, \UpdateCursor()\ method (line ~365)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions