AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

Default value for Input does not show after pressing "enter" #398

Closed jandersongo closed 2 years ago

jandersongo commented 2 years ago
Screen Shot 2021-12-29 at 5 50 09 PM Screen Shot 2021-12-29 at 5 50 30 PM

The default value for survey.Input does not show after pressing "enter"

[1st line in screenshot] The survey.Confirm correctly shows "Yes" in cyan. [3rd line in screenshot] The survey.Select correctly shows the selected value in cyan. [2nd line in screenshot] I would expect to see the "default_name_here" show up in cyan as the input answer.

Using MacOS & zsh

MehrunesSky commented 2 years ago

I test on MacOS and the default value appair after pressing "enter".

Can you tell me if the problem is still present?

mislav commented 2 years ago

@jandersongo I also could not reproduce with latest Survey and it seems that the default value is properly rendered in cyan in the final line after choosing the default input value. I will close this, but if you manage to make a minimal reproduction case, please share it!