On Tue, 29 Nov 2022 19:38:02 GMT, Naoto Sato <na...@openjdk.org> wrote:
> This is to allow Console to be used even when it is not attached to the > platform provided terminal, such as the case when the standard input is > redirected. `System.console()` now returns a Console implementation based on > `jdk.internal.le` terminal by default, or jshell implementation if available. > A corresponding CSR has been drafted. This pull request has now been integrated. Changeset: 8a9911ef Author: Naoto Sato <na...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/8a9911ef1762ae837e427ec9d91b1399ba33b6e4 Stats: 684 lines in 17 files changed: 661 ins; 11 del; 12 mod 8295803: Console should be usable in jshell and other environments Reviewed-by: jlaskey, alanb ------------- PR: https://git.openjdk.org/jdk/pull/11421