Class TerminalColorExample

java.lang.Object
org.aesh.terminal.tty.example.TerminalColorExample

public class TerminalColorExample extends Object
Example program demonstrating the terminal color detection API.

This program detects and displays:

  • Terminal color depth (8, 16, 256, or true color)
  • Terminal theme (light or dark background)
  • Actual foreground and background RGB colors (if detectable)
  • Suggested color codes for various message types

Run with -v or --verbose flag to enable debug logging.

Author:
Ståle W. Pedersen
  • Constructor Details

    • TerminalColorExample

      public TerminalColorExample()
      Creates a new TerminalColorExample instance.
  • Method Details

    • main

      public static void main(String[] args)
      Main entry point for the terminal color example.
      Parameters:
      args - command line arguments; use -v or --verbose to enable debug logging