readline-like library for Java [closed]
Asked Answered
P

2

6

Which readline-like library for Java do you use? By 'readline' like library I mean library for editing console input, with support for history, tab-completion, and stuff like this. I'm looking for one, and I cannot choose from so many choices (jLine -- unmaintained, java-readline -- last release on 2003, others?)

Planet answered 13/5, 2010 at 16:1 Comment(2)
Should be community wikiForegone
Community wiki police strikes again!Saskatchewan
E
5

I've used JLine to add history, etc. to a Clojure REPL (JVM process) when executed from the command line. It just magically worked and worked well, so I never bothered to investigate anything else.

Exchequer answered 13/5, 2010 at 16:3 Comment(3)
Thank you for answer. jLine looks good except it is abandoned. I will give it a try and hope for not running into issues :)Saskatchewan
It seems that Sonatype guys have custom version of JLine (github.com/jdillon/jline2)Saskatchewan
jline3 is the successor to jline, and it is alive and well: github.com/jline/jline3Handball
A
0

jruby has an internal readline you could probably call out to.

Artemus answered 26/5, 2011 at 17:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.