I have no problem using jline when the code is run within idea. Running with a bat file, the edit characters are not being sent to the terminal.
java -classpath ..\JActor\target\classes;..\JID\target\classes;target\classes;..\slf4j-api-1.7.2.jar;..\slf4j-simple-1.7.2.jar;..\apache-sshd-0.8.0\lib\sshd-core-0.8.0.jar;..\apache-sshd-0.8.0\lib\mina-core-2.0.5.jar;..\apache-sshd-0.8.0\lib\bcprov-jdk15-140.jar;..\jline-2.9.jar;..\joda-time-2.1.jar org.agilewiki.jasocket.sshd.SSHServer %1%
I checked the jline jar file and it contains the fusesource code for jansi and hawtjni.
Turns out, the Terminal used under IDEA and the dos box were different. Forcing the use of the IDEA terminal in all cases didn't work, but this did:
consoleReader = new ConsoleReader(in, out, new TerminalSupport(true) {});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With