- java.lang.Object
-
- swim.codec.OutputStyle
-
public final class OutputStyle extends Object
Stylized text output utility functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
black(Output<?> output)
Writes the ASCII black foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
blackBold(Output<?> output)
Writes the ASCII bold black foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
blue(Output<?> output)
Writes the ASCII blue foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
blueBold(Output<?> output)
Writes the ASCII bold blue foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
bold(Output<?> output)
Writes the ASCII bold (increased intensity) escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
cyan(Output<?> output)
Writes the ASCII cyan foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
cyanBold(Output<?> output)
Writes the ASCII bold cyan foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
faint(Output<?> output)
Writes the ASCII faint (decreased intensity) escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
gray(Output<?> output)
Writes the ASCII gray foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
grayBold(Output<?> output)
Writes the ASCII bold gray foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
green(Output<?> output)
Writes the ASCII green foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
greenBold(Output<?> output)
Writes the ASCII bold green foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
magenta(Output<?> output)
Writes the ASCII magenta foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
magentaBold(Output<?> output)
Writes the ASCII bold magenta foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
red(Output<?> output)
Writes the ASCII red foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
redBold(Output<?> output)
Writes the ASCII bold red foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
reset(Output<?> output)
static void
yellow(Output<?> output)
Writes the ASCII yellow foreground color escape code tooutput
, ifoutput.settings().isStyled()
istrue
.static void
yellowBold(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
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
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 tooutput
, ifoutput.settings().isStyled()
istrue
.- Throws:
OutputException
- ifoutput
exits the cont state before the full escape code has been written.
-
-