I'm trying to read a line from console in java. Here is my code:
System.console().readLine("shell $ ");
This works, but I want to use beloved linux features like arrows to move cursor (not inserting ^[[C like now), up arrow should address previous command, tab should autocomplete something (this is not nesessary, but useful, i will be satisfied with correct arrows behaviour).
And -- no, I want to use "pure java" solution, not JNI wrapper for libreadline.
Is there some functionality in JDK itself or some frameworks which provide such functions?