console icon indicating copy to clipboard operation
console copied to clipboard

ChoiceQuestion use <hl> tag when auto-completing

Open ninsuo opened this issue 6 years ago • 0 comments

Hey there,

When using the symfony's ChoiceQuestion with this console, we end up with a wrong auto-completion containing <hl> tags.

Example:

Hello world?
  [0] yes
  [1] no
 > y<hl>es</hl>

The fix is quite easy on my side:

$configuration->addStyle(Style::tag('hl')->bold());

But I think it could be nice to implement it directly in the library.

Cheers mate, Alain

ninsuo avatar May 31 '18 16:05 ninsuo