HelenOS sources
SGR_FGCOLOR 125 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + CI_BLACK);
SGR_FGCOLOR 130 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + CI_RED);
SGR_FGCOLOR 136 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + CI_WHITE);
SGR_FGCOLOR 141 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + CI_WHITE);
SGR_FGCOLOR 148 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + color_map[attrs.val.index.fgcolor & 7]);
SGR_FGCOLOR 168 uspace/lib/vt/src/vt100.c vt100_sgr(vt, SGR_FGCOLOR + color_map[color]);
HelenOS homepage, sources at GitHub