Class Terminals


  • public final class Terminals
    extends java.lang.Object
    Factory for the platform terminal driver. The concrete implementation is internal.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Terminal system()
      Opens the system terminal, JLine-backed by default.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • system

        public static Terminal system()
        Opens the system terminal, JLine-backed by default.
        Returns:
        the platform terminal driver
        Throws:
        java.lang.IllegalStateException - if no interactive ANSI terminal is available