Re: Java is too limited when dealing with the Console

2016-11-15 Thread Remi Forax
i it's the package used by maven for its colored outputs. Btw you can put a dll inside a jmod. regards, Rémi - Mail original - > De: "Roger Riggs" > À: [email protected] > Envoyé: Mardi 15 Novembre 2016 19:17:34 > Objet: Re: Java is too limited when de

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Roger Riggs
Hi Brunoais, Largely, because most people don't interact with java from a terminal and the simple stream oriented access has been sufficient. Take a look for layered libraries that can handle fancier terminals that have color and various positioning (ANSI) escape sequences that might meet yo

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Brunoais
I also noticed now that this does not allow placing the cursor in arbitrary places. With the same restrictions as jline, I could use javacurses. https://sourceforge.net/projects/javacurses/ Unfortunately, it also requires using extra native libraries to work because java does not include such

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Brunoais
jLine requires a .dll on windows making it not OS agnostic. If this existed in java itself, this problem would not be a problem because java internal dll are signed by java and can be included without issues. But then, why doesn't java have this? On 15/11/2016 15:12, Roger Riggs wrote: Hi,

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Roger Riggs
Hi, You might find an open source package like JLine would have the full featured terminal support you are looking for. http://jline.sourceforge.net/ Roger On 11/13/2016 5:35 AM, Brunoais wrote: Since java 6, a class named Console was created. This class allows reading and writing directl

Java is too limited when dealing with the Console

2016-11-13 Thread Brunoais
Since java 6, a class named Console was created. This class allows reading and writing directly to the console, including getting input without echoing for password purposes. Unfortunately, that class does not include useful functionality for java programs to work on the console and output for