Interface Terminals

    • Method Detail

      • withAnsiOutput

        Terminals withAnsiOutput()
        Returns a copy of this terminal access that forces terminal output to use ANSI escape sequences. This can be used to force rich terminal output when not attached to a terminal.

        Terminal input is not changed.

      • isTerminalInput

        boolean isTerminalInput()
                         throws NativeException
        Returns true if the system input is attached to a terminal.
        Throws:
        NativeException
      • getTerminalInput

        TerminalInput getTerminalInput()
                                throws NativeException
        Returns the terminal attached to system input
        Returns:
        The terminal. Never returns null.
        Throws:
        NativeException - When the input is not attached to a terminal.