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

Get IRenderable from Prompts #1689

Open
Armando-CodeCafe opened this issue Nov 20, 2024 · 0 comments
Open

Get IRenderable from Prompts #1689

Armando-CodeCafe opened this issue Nov 20, 2024 · 0 comments

Comments

@Armando-CodeCafe
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It would be alot nicer if there was some way to get an underlying renderable of a Prompt somehow. As currently to my knowledge its not possible to put prompt on ofher layout like panels, layouts and grids
Describe the solution you'd likeq
A clear and concise description of what you want to happen.
Some kinda of .GetRenderable function on all promps that returns the renderable but doesnt display the lrompt yet, some kind of delegate call or event on fhe prompt itself to specify what should happen when the prompt is finished. This way we can put prompts as rendersbles and also still catch their output

So:
Panel p = new Panel(AnsiConsols.Ask<string>().GetRenderable(string output => doCodeWithOutout));

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Manually replacing the promp system by just moving the regulae console cursor and doing a readline.

Additional context
Add any other context or screenshots about the feature request here.


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