ansi-console-colors
Version:
Creates a console.print function that accepts PCBoard color codes
33 lines (27 loc) • 985 B
Markdown
## Color for your console app
Uses old school PCBoard color codes.
```Javascript
require('ansi-console-colors');
console.print('@X01Hello @X03World@X05!');
```
## PCBoard Color Format
The PCBoard method uses the format ``“@X<Background><Foreground>”``
| # | Color | Attribute |
|---|-----------|-------------------|
| 0 | Black | Normal |
| 1 | Blue | Normal |
| 2 | Green | Normal |
| 3 | Cyan | Normal |
| 4 | Red | Normal |
| 5 | Magenta | Normal |
| 6 | Yellow | Normal |
| 7 | White | Normal |
| 8 | Black | High Intensity |
| 9 | Blue | High Intensity |
| A | Green | High Intensity |
| B | Cyan | High Intensity |
| C | Red | High Intensity |
| D | Magenta | High Intensity |
| E | Yellow | High Intensity |
| F | White | High Intensity |
### View the test.js file for details / examples!