I use JLine library to handle console input and output.
Terminal terminal = TerminalFactory.getFlavor(TerminalFactory.Flavor.valueOf("UNIX"));
terminal.init();
terminal.setEchoEnabled(true);
ConsoleReader console = new ConsoleReader(System.in,System.out);
int key = console.readCharacter();
I use JLine v2.6. Echo doesn't work. What is wrong with the above code? Can somebody help?
Sick and tired of searching for other libraries like JLine. Is there any other Java library to handle console input?