Interface CliPrinter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  CliPrinter.ConsumerPrinter
      CliPrinter that calls a Consumer that accepts a CharSequence.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void println​(java.lang.String text)
      Prints text to the writer and appends a new line.
      default java.lang.String style​(java.lang.String text, Style... styles)
      Styles the given text using ANSI escape sequences.
    • Method Detail

      • println

        void println​(java.lang.String text)
        Prints text to the writer and appends a new line.
        Parameters:
        text - Text to print.
      • style

        default java.lang.String style​(java.lang.String text,
                                       Style... styles)
        Styles the given text using ANSI escape sequences.

        It is strongly recommended to use the constants defined in Style to provide valid combinations of ANSI color escape codes.

        Parameters:
        text - Text to style.
        styles - ANSI escape codes.
        Returns:
        Returns the styled text.