- java.lang.Object
-
- swim.codec.OutputStyle
-
public final class OutputStyle extends Object
Stylized text output utility functions.
-
-
Method Summary
Modifier and Type Method Description static voidblack(Output<?> output)Writes the ASCII black foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidblackBold(Output<?> output)Writes the ASCII bold black foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidblue(Output<?> output)Writes the ASCII blue foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidblueBold(Output<?> output)Writes the ASCII bold blue foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidbold(Output<?> output)Writes the ASCII bold (increased intensity) escape code tooutput, ifoutput.settings().isStyled()istrue.static voidcyan(Output<?> output)Writes the ASCII cyan foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidcyanBold(Output<?> output)Writes the ASCII bold cyan foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidfaint(Output<?> output)Writes the ASCII faint (decreased intensity) escape code tooutput, ifoutput.settings().isStyled()istrue.static voidgray(Output<?> output)Writes the ASCII gray foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidgrayBold(Output<?> output)Writes the ASCII bold gray foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidgreen(Output<?> output)Writes the ASCII green foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidgreenBold(Output<?> output)Writes the ASCII bold green foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidmagenta(Output<?> output)Writes the ASCII magenta foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidmagentaBold(Output<?> output)Writes the ASCII bold magenta foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidred(Output<?> output)Writes the ASCII red foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidredBold(Output<?> output)Writes the ASCII bold red foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidreset(Output<?> output)static voidyellow(Output<?> output)Writes the ASCII yellow foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.static voidyellowBold(Output<?> output)Writes the ASCII bold yellow foreground color escape code tooutput, ifoutput.settings().isStyled()istrue.
-
-
-
Method Detail
-
reset
public static void reset(Output<?> output)
- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits 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 tooutput, ifoutput.settings().isStyled()istrue.- Throws:
OutputException- ifoutputexits the cont state before the full escape code has been written.
-
-