`java.io.Console` class now uses `JLine` as the default `Console` provider. The support for `JLine` console was added in JDK20. However, the user would have to explicitly specify `-Djdk.console=jdk.internal.le` to the java launcher command line in order to enable it. As a result, `System.console()` now returns a `Console` instance even if the instance is not attached to a terminal which is typically an interactive command line connected to a keyboard and display. A new method `Console.isTerminal()` is provided for detecting if the returned `Console` instance is a terminal or not.