Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt suffix inconsistency #1638

Open
sebbarg opened this issue Sep 13, 2024 · 0 comments
Open

Prompt suffix inconsistency #1638

sebbarg opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@sebbarg
Copy link

sebbarg commented Sep 13, 2024

Information

  • OS: MacOS
  • Version: 0.49.1 (and later)
  • Terminal: iTerm2

Describe the bug
Prompt suffix (':' colon) is missing in some cases.

Simple prompt without default value. Notice the missing colon:

AnsiConsole.Prompt(
  new TextPrompt<string>("no default, no suffix"));

// => no default, no suffix

Simple prompt with default value. Notice the colon is present:

AnsiConsole.Prompt(
  new TextPrompt<string>("with default, with suffix").DefaultValue("default"));

// => with default, with suffix (default):

Expected behavior
Be consistent :)


Please upvote 👍 this issue if you are interested in it.

@sebbarg sebbarg added bug Something isn't working needs triage labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant