spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

Prompt suffix inconsistency

Open sebbarg opened this issue 1 year ago • 0 comments

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 :+1: this issue if you are interested in it.

sebbarg avatar Sep 13 '24 07:09 sebbarg