disable !events on jline console

This commit is contained in:
Peter Hormanns 2016-09-12 12:57:35 +02:00
parent 774f030e01
commit 15c7236ccd

View File

@ -17,6 +17,7 @@ public class ConsoleWrapper implements PasswordReader {
this.prompt = prompt; this.prompt = prompt;
try { try {
cons = new ConsoleReader(); cons = new ConsoleReader();
cons.setExpandEvents(false);
cons.setPrompt(prompt); cons.setPrompt(prompt);
final String userHome = System.getProperty("user.home"); final String userHome = System.getProperty("user.home");
cons.setHistory(new FileHistory(new File(userHome + "/.hsscript_history"))); cons.setHistory(new FileHistory(new File(userHome + "/.hsscript_history")));