Class Ansi

java.lang.Object
network.ike.plugin.ws.Ansi

public final class Ansi extends Object
ANSI escape code constants for colored terminal output.

Maven passes -Dstyle.color=always in IntelliJ by default, so ANSI codes render correctly in both terminal and IDE console. These are used for status markers in ws: goal output to provide quick visual scanning of success/warning/error states.

Color assignments:

  • Green — success (✓ checkmarks, completion, alignment)
  • Yellow — warning (⚠ non-critical issues, prompts)
  • Red — error (✗ failures, blocking problems)
  • Cyan — action (↻ sync, ↓ download, in-progress)
  • Field Details

  • Method Details

    • green

      public static String green(String text)
      Wrap text in green (success).
      Parameters:
      text - the content to colorize
      Returns:
      ANSI-wrapped string
    • yellow

      public static String yellow(String text)
      Wrap text in yellow (warning).
      Parameters:
      text - the content to colorize
      Returns:
      ANSI-wrapped string
    • red

      public static String red(String text)
      Wrap text in red (error).
      Parameters:
      text - the content to colorize
      Returns:
      ANSI-wrapped string
    • cyan

      public static String cyan(String text)
      Wrap text in cyan (action/progress).
      Parameters:
      text - the content to colorize
      Returns:
      ANSI-wrapped string