Class Diag


  • public class Diag
    extends java.lang.Object
    Diagnostic utility for JLine terminals.

    The Diag class provides diagnostic tools for analyzing and troubleshooting JLine terminal configurations. It can be used to gather information about the current environment, available terminal providers, system properties, and other details relevant to terminal operation.

    This class can be run as a standalone application to generate a diagnostic report, which is useful for debugging terminal-related issues. The report includes information such as:

    • Java version and system properties
    • Operating system details
    • Available terminal providers
    • Terminal capabilities and attributes
    • Console and TTY information

    The diagnostic information can help identify configuration issues, missing dependencies, or platform-specific problems that might affect terminal functionality.

    • Constructor Summary

      Constructors 
      Constructor Description
      Diag​(java.io.PrintStream out, boolean verbose)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void diag​(java.io.PrintStream out)
      Generates a diagnostic report with standard verbosity.
      static void diag​(java.io.PrintStream out, boolean verbose)  
      static void main​(java.lang.String[] args)
      Main entry point for running the diagnostic tool.
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Diag

        public Diag​(java.io.PrintStream out,
                    boolean verbose)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Main entry point for running the diagnostic tool.

        This method runs the diagnostic tool and prints the results to standard output. If the "--verbose" flag is provided as an argument, additional detailed information will be included in the output.

        Parameters:
        args - command-line arguments (use "--verbose" for detailed output)
      • diag

        public static void diag​(java.io.PrintStream out)
        Generates a diagnostic report with standard verbosity.

        This method generates a diagnostic report with standard verbosity and writes it to the specified PrintStream. This is equivalent to calling diag(PrintStream, boolean) with verbose=false.

        Parameters:
        out - the PrintStream to write the diagnostic report to
      • diag

        public static void diag​(java.io.PrintStream out,
                                boolean verbose)
      • run

        public void run()