jline

JLine web site

JLine - Advanced Console Input for Java

Overview

JLine is a powerful Java library that brings advanced console input handling capabilities to your applications. It provides functionality similar to BSD editline and GNU readline, while offering additional features that rival the sophisticated ZSH line editor.

Key Features

See It in Action

Watch JLine’s capabilities in this interactive demo:

JLine gogo demo

Getting Started

Maven Dependency

<dependency>
    <groupId>org.jline</groupId>
    <artifactId>jline</artifactId>
    <version>3.x.x</version>
</dependency>

Quick Example

Terminal terminal = TerminalBuilder.terminal();
LineReader lineReader = LineReaderBuilder.builder()
        .terminal(terminal)
        .build();

String line = lineReader.readLine("prompt> ");

Evolution of JLine

JLine has evolved significantly since its inception:

Documentation

Community

License

JLine is released under the BSD License.


JLine is actively maintained and welcomes contributions from the community.