Module swim.codec
Package swim.codec

Class OutputStyle


  • public final class OutputStyle
    extends Object
    Stylized text output utility functions.
    • Method Detail

      • bold

        public static <T> Output<T> bold​(Output<T> output)
        Writes the ASCII bold (increased intensity) escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • faint

        public static <T> Output<T> faint​(Output<T> output)
        Writes the ASCII faint (decreased intensity) escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • black

        public static <T> Output<T> black​(Output<T> output)
        Writes the ASCII black foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • red

        public static <T> Output<T> red​(Output<T> output)
        Writes the ASCII red foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • green

        public static <T> Output<T> green​(Output<T> output)
        Writes the ASCII green foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • yellow

        public static <T> Output<T> yellow​(Output<T> output)
        Writes the ASCII yellow foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • blue

        public static <T> Output<T> blue​(Output<T> output)
        Writes the ASCII blue foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • magenta

        public static <T> Output<T> magenta​(Output<T> output)
        Writes the ASCII magenta foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • cyan

        public static <T> Output<T> cyan​(Output<T> output)
        Writes the ASCII cyan foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • gray

        public static <T> Output<T> gray​(Output<T> output)
        Writes the ASCII gray foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • blackBold

        public static <T> Output<T> blackBold​(Output<T> output)
        Writes the ASCII bold black foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • redBold

        public static <T> Output<T> redBold​(Output<T> output)
        Writes the ASCII bold red foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • greenBold

        public static <T> Output<T> greenBold​(Output<T> output)
        Writes the ASCII bold green foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • yellowBold

        public static <T> Output<T> yellowBold​(Output<T> output)
        Writes the ASCII bold yellow foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • blueBold

        public static <T> Output<T> blueBold​(Output<T> output)
        Writes the ASCII bold blue foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • magentaBold

        public static <T> Output<T> magentaBold​(Output<T> output)
        Writes the ASCII bold magenta foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • cyanBold

        public static <T> Output<T> cyanBold​(Output<T> output)
        Writes the ASCII bold cyan foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.
      • grayBold

        public static <T> Output<T> grayBold​(Output<T> output)
        Writes the ASCII bold gray foreground color escape code to output, if output.settings().isStyled() is true.
        Returns:
        the continuation of the output.