Module swim.codec
Package swim.codec

Class OutputStyle


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

      • reset

        public static void reset​(Output<?> output)
        Writes the ASCII reset escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • bold

        public static void bold​(Output<?> output)
        Writes the ASCII bold (increased intensity) escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • faint

        public static void faint​(Output<?> output)
        Writes the ASCII faint (decreased intensity) escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • black

        public static void black​(Output<?> output)
        Writes the ASCII black foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • red

        public static void red​(Output<?> output)
        Writes the ASCII red foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • green

        public static void green​(Output<?> output)
        Writes the ASCII green foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • yellow

        public static void yellow​(Output<?> output)
        Writes the ASCII yellow foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • blue

        public static void blue​(Output<?> output)
        Writes the ASCII blue foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • magenta

        public static void magenta​(Output<?> output)
        Writes the ASCII magenta foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • cyan

        public static void cyan​(Output<?> output)
        Writes the ASCII cyan foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • gray

        public static void gray​(Output<?> output)
        Writes the ASCII gray foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • blackBold

        public static void blackBold​(Output<?> output)
        Writes the ASCII bold black foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • redBold

        public static void redBold​(Output<?> output)
        Writes the ASCII bold red foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • greenBold

        public static void greenBold​(Output<?> output)
        Writes the ASCII bold green foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • yellowBold

        public static void yellowBold​(Output<?> output)
        Writes the ASCII bold yellow foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • blueBold

        public static void blueBold​(Output<?> output)
        Writes the ASCII bold blue foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • magentaBold

        public static void magentaBold​(Output<?> output)
        Writes the ASCII bold magenta foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • cyanBold

        public static void cyanBold​(Output<?> output)
        Writes the ASCII bold cyan foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.
      • grayBold

        public static void grayBold​(Output<?> output)
        Writes the ASCII bold gray foreground color escape code to output, if output.settings().isStyled() is true.
        Throws:
        OutputException - if output exits the cont state before the full escape code has been written.