Skip to content

Explore Spectre.Console 0.55 TextPrompt improvements (editable defaults, CancellationToken) #426

@sliekens

Description

@sliekens

Background

Spectre.Console 0.55.0 adds useful improvements to TextPrompt:

  • Editable default values — pre-populate the prompt with a value the user can modify before submitting.
  • CancellationToken support — programmatically cancel prompts.
  • Clear-prompt-line option — erase the prompt after input.

Relevant files

  • samples/MostVersatileMaterials/ItemPicker.cs — uses AnsiConsole.Prompt()

Opportunity

Review ItemPicker.cs to see if editable defaults or cancellation support would improve the user experience.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions