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

Add text-only prompt element for console-ui #1136

Open
quintesse opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1138
Open

Add text-only prompt element for console-ui #1136

quintesse opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1138
Milestone

Comments

@quintesse
Copy link
Contributor

This issue is about creating a prompt element for the console-ui that only displays text and doesn't ask the user for input.
This way a developer can introduce "sub-headers" (= text-only blocks between prompt elements) in front of input elements that will be displayed automatically (and also removed automatically when cancelling) without having to manage the prompt headers list manually.

Right now a developer can add sub-headers by manually adding strings to the list of headers between calls to prompt.prompt(), but the new prompt() method introduced in #1132 doesn't allow this. So we needed to come up with an alternative, which is this issue.

quintesse added a commit to quintesse/jline3 that referenced this issue Dec 19, 2024
@quintesse quintesse linked a pull request Dec 19, 2024 that will close this issue
quintesse added a commit to quintesse/jline3 that referenced this issue Dec 19, 2024
@mattirn mattirn added this to the 3.28.1 milestone Dec 19, 2024
quintesse added a commit to quintesse/jline3 that referenced this issue Dec 28, 2024
quintesse added a commit to quintesse/jline3 that referenced this issue Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants