Enable History.

This commit is contained in:
Michael Hierweck 2014-08-28 12:14:18 +02:00
parent cbb50c1a87
commit d61f6bf9e5

View File

@ -5,6 +5,7 @@ import java.io.IOException;
import de.hsadmin.jscli.exception.JSCliException;
import jline.ConsoleReader;
import jline.SimpleCompletor;
import jline.History;
public class ConsoleWrapper implements PasswordReader {
@ -16,6 +17,7 @@ public class ConsoleWrapper implements PasswordReader {
try {
cons = new ConsoleReader();
cons.setDefaultPrompt(prompt);
cons.setHistory(new History());
} catch (IOException e) {
throw new JSCliException(e);
}