-
How Can I Implement An Interactive Prompt ? but unfortunately, I was unable to find the library for implementing an interactive prompt for my application something like PromptUI in golang if we add the power of interactive prompt to picocli or as a separate library it would be amazing 💡 if there is a library for this purpose I will be very appropriated if someone introduced to me |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I could add also this approach https://github.com/charmbracelet/gum |
Beta Was this translation helpful? Give feedback.
-
Picocli offers integration with JLine (jline 2 and jline 3) for shell-like interactive interfaces where users type commands. You may be interested in the Lanterna project, which offers a TUI (text UI), sort of like rendering components like checkboxes, buttons, dialogs etc in a text terminal. The PromptUI projection you pointed to seems to be a hybrid of these. For completeness, some more ideas for richer terminal integration are mentioned in this ticket: #729 |
Beta Was this translation helpful? Give feedback.
Picocli offers integration with JLine (jline 2 and jline 3) for shell-like interactive interfaces where users type commands.
You may be interested in the Lanterna project, which offers a TUI (text UI), sort of like rendering components like checkboxes, buttons, dialogs etc in a text terminal.
The PromptUI projection you pointed to seems to be a hybrid of these.
I don't know what the state of the art is in this area for Java-based projects/libraries.
I did some research two years ago, and listed my findings in this ticket; it mentions some other libraries doing work on interactive, hybrid and "fluid" consoles. If you find new ones I would appreciate it if you could add links to that ticket…