Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8360298

System.console() for partially interactive environments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None
    • generic
    • generic

      As of JDK25, the default implementation of `System.console()` returns a `Console` instance only when the underlying platform provides interactive terminals for both input and output. However, there are cases where either of them is connected to pipe or file, i.e non-interactive. Returning a `Console` instance would be beneficial even for those cases.

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

              Created:
              Updated:
              Resolved: