ANSI escape codes providing control over text formatting and color on supporting text terminals.
ANSI escape codes providing control over text formatting and color on supporting text terminals.
This group of escape codes provides control over text styling. For example, to turn on reverse video with bold and then turn off all styling embed these codes,
import io.AnsiColor._object ColorDemo extends App { println(s"${REVERSED}${BOLD}Hello 1979!${RESET}")}Embedding ANSI color codes in text output will control the text foreground and background colors.
| Foreground | Background | |
|---|---|---|
| BLACK | BLACK_B | |
| RED | RED_B | |
| GREEN | GREEN_B | |
| YELLOW | YELLOW_B | |
| BLUE | BLUE_B | |
| MAGENTA | MAGENTA_B | |
| CYAN | CYAN_B | |
| WHITE | WHITE_B |
This object provides convenience methods to create an iterable representation of a source file.
This object provides convenience methods to create an iterable representation of a source file.
A class for character encoding/decoding preferences.
A class for character encoding/decoding preferences.
This object provides convenience methods to create an iterable representation of a source file.
An iterable representation of source data.
An iterable representation of source data. It may be reset with the optionalreset method.
Subclasses must supplythe underlying iterator.
Error handling may be customized by overriding thereport method.
Thecurrent input andposition, as well as thenext character methods delegate tothe positioner.
The default positioner encodes line and column numbers in the position passed toreport. This behavior can be changed by supplying acustom positioner.