Top Methods
io.github.darvil.terminal.textformatter.color

public Interface Color

Known Direct Implementers
io.github.darvil.terminal.textformatter.color.SimpleColor, io.github.darvil.terminal.textformatter.color.TrueColor
Imports
org.jetbrains.annotations.NotNull

Method Summary

Modifier and TypeMethod and Description
public @NotNull String

Returns:

The ANSI escape sequence for this color.
bg
()

Returns the ANSI escape sequence for this color for the text background.

public @NotNull String

Returns:

The ANSI escape sequence for this color.
fg
()

Returns the ANSI escape sequence for this color for the text foreground.

public @NotNull String

Returns:

The ANSI escape sequence for this color.
toString
()

Returns the ANSI escape sequence for this color for the text foreground.

Method Detail

bgback to summary
public @NotNull String bg()

Returns the ANSI escape sequence for this color for the text background.

Returns:@NotNull String

The ANSI escape sequence for this color.

Annotations
@NotNull
fgback to summary
public @NotNull String fg()

Returns the ANSI escape sequence for this color for the text foreground.

Returns:@NotNull String

The ANSI escape sequence for this color.

Annotations
@NotNull
toStringback to summary
public @NotNull String toString()

Returns the ANSI escape sequence for this color for the text foreground.

Returns:@NotNull String

The ANSI escape sequence for this color.

Annotations
@Override
@NotNull
See Also
Color#fg()