Skip to content

TextValidateField cursor debug rendering changes background attribute #5468

Description

@tig

TextValidateField appears to still contain old cursor debug rendering behavior that changes the background attribute while drawing the cursor/focused insertion point.

This makes editable fields render like a selected block/background in tuirec PNG/GIF output instead of preserving the normal field colors and only changing cursor styling. The issue showed up while prototyping editable NumericUpDown with TextValidateField: cursor visualization was expected to use TextStyle.Underline, but the field/cursor area still picked up a background attribute change.

Expected behavior:

  • Cursor visualization should not change the background attribute.
  • Temporary cursor styling should be limited to text style, e.g. underline, or to the real terminal cursor.

Observed behavior:

  • The rendered field/focused cursor area changes background, making it look like selected text/debug highlighting.

This should be fixed in TextValidateField drawing so the background is preserved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions