jlinenoise is a java binding around the C linenoise library.
$ make clean run
......
......
......
Hello!
$ ls
read: ls
$ hello man
Follow the link to see the code of this example and use jlinenoise in your project.
Methods :
init()
linenoise(prompt)
Methods :
loadHistory(filepath)
addToHistory(line)
saveHistory(filepath)
of the version v0.0.22
mvn install:install-file -Dfile=jlinenoise.jar -DgroupId=com.github.jfgiraud -DartifactId=jlinenoise -Dversion=v0.0.22 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=jlinenoise.jar -DgroupId=com.github.jfgiraud -DartifactId=jlinenoise -Dversion=v0.0.22 -Dpackaging=jar -DgeneratePom=true
Introduce the dependency in your pom.xml
<dependency>
<groupId>com.github.jfgiraud</groupId>
<artifactId>jlinenoise</artifactId>
<version>v0.0.22</version>
</dependency>
Follow the link to see the code of this example and use jlinenoise in your project.