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

IPrompt: Render prompts in a wrapper #1670

Closed
i-m-luke opened this issue Oct 18, 2024 · 1 comment
Closed

IPrompt: Render prompts in a wrapper #1670

i-m-luke opened this issue Oct 18, 2024 · 1 comment

Comments

@i-m-luke
Copy link

I would like to create a TUI based app with a layout similar to Midnight Commander (menu at the top and bottom and a prompt between them). Menus are simple text with commands (e.g., Exit [ESC], etc.). The prompts are async to be able to interrupt them when a menu command key is pressed.

Solutions:
a) Insert the prompt into a table
b) Set TopWrapper and BottomWrapper: wrappers will be rendered in their respective positions

I'm sure if it were easy to implement, it would have been done alread

@github-project-automation github-project-automation bot moved this to Todo 🕑 in Spectre Console Oct 18, 2024
@i-m-luke i-m-luke changed the title IPrompt: Wrap prompts into a container IPrompt: Render prompts in a wrapper Oct 18, 2024
@patriksvensson
Copy link
Contributor

Prompts do not implement IRenderable, and are not designed to be used inside tables or similar as stated in our docs. This is by design.

@github-project-automation github-project-automation bot moved this from Todo 🕑 to Done 🚀 in Spectre Console Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done 🚀
Development

No branches or pull requests

2 participants