Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308591 JLine as the default Console provider
  3. JDK-8309155

Release Note: JLine As The Default Console Provider

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 22
    • 22
    • core-libs
    • generic
    • generic

      `System.console()` has changed in this release to return a `Console` with enhanced editing features that improve the experience of programs that use the `Console` API. In addition, `System.console()` now returns a `Console` object when the standard streams are redirected or connected to a virtual terminal. In prior releases, `System.console()` returned `null` for these cases. This change may impact code that uses the return from `System.console()` to test if the VM is connected to a terminal. If needed, running with `-Djdk.console=java.base` will restore older behavior where the console is only returned when it is connected to a terminal.

      A new method `Console.isTerminal()` has been added to test if console is connected to a terminal.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: