From d61f6bf9e5411e6cd72529e9dba0912bbdd3a4ee Mon Sep 17 00:00:00 2001 From: Michael Hierweck Date: Thu, 28 Aug 2014 12:14:18 +0200 Subject: [PATCH] Enable History. --- hsarjcli/src/de/hsadmin/jscli/console/ConsoleWrapper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hsarjcli/src/de/hsadmin/jscli/console/ConsoleWrapper.java b/hsarjcli/src/de/hsadmin/jscli/console/ConsoleWrapper.java index b7cff04..d0034d0 100644 --- a/hsarjcli/src/de/hsadmin/jscli/console/ConsoleWrapper.java +++ b/hsarjcli/src/de/hsadmin/jscli/console/ConsoleWrapper.java @@ -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); }