It's unfortunate that Mordant requires native library on JVM, but currently unavoidable.
Maybe it would be good to request these features (check for interactivity, query terminal size, enter raw mode, anything else needed?) to be added to Java standard library.
It's unfortunate that Mordant requires native library on JVM, but currently unavoidable.
Maybe it would be good to request these features (check for interactivity, query terminal size, enter raw mode, anything else needed?) to be added to Java standard library.
Should be fairly easy to implement there given that some of this is already provided by java.io.Console. I would guess that [Console.readPassword()](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/Console.html#readPassword()) needs to enter raw mode, and that [System.console()](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/System.html#console()) checks for interactivity.