Class SplitConsole

java.lang.Object
org.jdrupes.builder.core.console.SplitConsole
All Implemented Interfaces:
AutoCloseable

public final class SplitConsole extends Object implements AutoCloseable
Provides a split console using ANSI escape sequences.
  • Method Details

    • open

      public static SplitConsole open()
      Open the split console.
      Returns:
      the split console
    • nullStatusLine

      public static StatusLine nullStatusLine()
      Return a status line implementation that discards all update information.
      Returns:
      the status line
    • out

      public PrintStream out()
      Writes the bytes to the scrollable part of the console.
      Returns:
      the prints the stream
    • err

      public PrintStream err()
      Writes the bytes to the scrollable part of the console.
      Returns:
      the prints the stream
    • close

      public void close()
      Close.
      Specified by:
      close in interface AutoCloseable
    • statusLine

      Allocates a line for outputs from the current thread.
      Returns:
      the status line