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

SelectionPrompts not visible in console after selection #1748

Open
kentico-ericd opened this issue Jan 29, 2025 · 0 comments
Open

SelectionPrompts not visible in console after selection #1748

kentico-ericd opened this issue Jan 29, 2025 · 0 comments

Comments

@kentico-ericd
Copy link

Is your feature request related to a problem? Please describe.
When using a SelectionPrompt, the prompt title and selected value don't remain visible in the console after selection.

Describe the solution you'd like
Like other prompts, I'd like the title and value to appear in the console for troubleshooting/log retention.

Describe alternatives you've considered
Currently, I need to manually print the title and value after selection:

string databaseTitle = $"[{Constants.PROMPT_COLOR}]Database:[/] ";
connectionSettings.DatabaseName = AnsiConsole.Prompt(new SelectionPrompt<string>()
{
    Title = databaseTitle
}.AddChoices(databaseNames));

// SelectionPrompts do not appear in console after selection, so print the selected value
AnsiConsole.Markup(databaseTitle + connectionSettings.DatabaseName);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant