
Tiny java library that enables simple UI elements on ANSI console based terminals
ConsoleUI is a tiny Java library that brings a modern touch to console-based user interfaces, allowing developers to create intuitive UI elements on ANSI terminals. Inspired by the well-known Inquirer.js used in JavaScript, ConsoleUI fills a gap in the Java ecosystem by providing similar functionalities that streamline user interactions during project creation and other command-line applications. With its simple and user-friendly design, ConsoleUI aims to enhance the experience of working in a console environment, making it a must-try for any Java developer looking to improve their terminal applications.
As of 2024, it's essential to note that ConsoleUI has become part of the jline3 library, which means that further development will take place there. This shift positions ConsoleUI as a robust and evolving component of a well-established library, ensuring that users can adapt to ongoing updates and improvements easily.
Text Input with Completion: Offers a classic input prompt where users can type commands, complete with GNU ReadLine compatible editing for enhanced usability.
Checkboxes: Lets users select any number of items from a predefined list, making it easier to gather multiple inputs at once.
Lists: Allows users to choose a single item from a list, providing a straightforward way to navigate options.
Expandable Choices: Supports multiple key-based answers to a question with helpful navigation options, enhancing user interaction significantly.
Yes/No Questions: Simplifies decision-making by directly asking for a binary response, streamlining the flow of input.
Custom Input Masks: Facilitates secure input such as passwords by allowing users to define a mask character, improving security for sensitive data.
With its straightforward API and modern design, ConsoleUI is poised to elevate console applications, making them more interactive and user-friendly.
