An enumeration of the various underlying readline APIs supported by this API.
An enumeration of the various underlying readline APIs supported by this API. Note that a given API may or may not be available on a particular machine. The following implementations are currently supported:
- GNUReadline: The GNU Readline library. Requires the JavaReadline jar
(http://java-readline.sourceforge.net/) and the GNU Readline
library (http://tiswww.case.edu/php/chet/readline/rltop.html).
- Editline: The Editline library, originally from BSD Unix.
Requires the libjavaeditline jar and dynamic library (see
http://software.clapper.org/java/javaeditline/) and the
Editline library (http://www.thrysoee.dk/editline/).
- Getline: The Getline library. Requires the JavaReadline jar
(http://java-readline.sourceforge.net/) and the Getline library.
- JLine: The JLine library. Requires the JLine jar
http://jline.sourceforge.net/).
- Simple: A simple, none-editing, pure Java implementation.
Get the specified Readline implementation, with
autoAddHistory set to true.
Get the specified Readline implementation, with
autoAddHistory set to true.
the ReadlineType to use
an arbitrary name of the calling application
the appropriate Readline implementation.
Get the specified Readline implementation.
Get the specified Readline implementation. This function will
throw an UnsatisfiedLinkError if the underlying library cannot be
found.
the ReadlineType to use
an arbitrary name of the calling application
whether lines read by the function should
automatically be added to the history. If this
parameter is false, then the caller
is responsible for adding lines to the history.
the appropriate Readline implementation.
Given a list of Readline types, find and return the first one
that loads.
Given a list of Readline types, find and return the first one
that loads.
list of readline library types to try, in order
an arbitrary name of the calling application
whether lines read by the function should
automatically be added to the history. If this
parameter is false, then the caller
is responsible for adding lines to the history.
the loaded implementation, or None.
Companion factory object, used to instantiate particular readline implementations.
Use JLine <https://github.com/jline/jline2>