-
Notifications
You must be signed in to change notification settings - Fork 218
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
Merge ConsoleUI to provide interactive menus #841
Comments
Yes, you can do it also in java... See #592 and my old pull request Upgrade JLine to 3.19.0 awegmann/consoleui#24, which IMHO is working pretty well. |
Nice, thanks. Does this attempt things like https://www.npmjs.com/package/inquirer, meaning, arrow key navigable select/multi-select? |
It looks like it does indeed. What is the quickest path to take from a vanilla JLine app to an app that can offer interactive menu prompts? |
I'm pretty confused right now, can someone point me in the right direction on (preferably) an explanation on how to do these sorts of things? As I understand, JLine is capable of reading UP, DOWN, and such keystrokes, I just cannot for the life of me get it to work! |
My superficial understanding is that the JLine library does not handle single keystrokes but you can add a layer that will respond that way. I think the second comment above demonstrates how to do that in the links. Still looking. |
I'm actually writing a piece for InfoWorld on JLine, and I was hoping to include some fancy menu handling but I think I'll just go with entering text and hitting the enter key. |
So, to clear everything up: JLine doesn't provide this functionality on its own. Why did #24 never get merged? |
That's not for us to answer. I suppose the project is not maintained anymore... However, if there's a will and if @awegmann is ok, we could merge ConsoleUI into a new JLine module and shut down the ConsoleUI project. |
Hi everybody. Mea culpa. ConsoleUI is not really maintained anymore from my side. I would be pleased, if the project can live directly with JLine. |
Ok, thx for the quick reply ! @mattirn @lutzseverino do you want to take a look at creating a PR to merge ConsoleUI into JLine in a new module ? |
Ok, I can do a PR. |
I want to achieve an effect like so: https://www.npmjs.com/package/prompt-checkbox
But in Java. (C'mon Java, you can do it).
The text was updated successfully, but these errors were encountered: