| 91 | |
| 92 | |
| 93 | void ANSI::color(uint8_t fgcolor, uint8_t bgcolor) |
| 94 | { |
| 95 | if (fgcolor < 16 && bgcolor < 16) { |
| 96 | this->colors4(fgcolor, bgcolor); |
| 97 | } else { |
| 98 | this->color8(fg_normal, fgcolor); |
| 99 | this->color8(bg_normal, bgcolor); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 | uint8_t ANSI::rgb2color(uint8_t r, uint8_t g, uint8_t b) { |