added support for alternate colors

This commit is contained in:
tater 2018-06-23 23:02:39 -05:00
parent 317657131d
commit 794a0264e1

4
a2m.c
View File

@ -251,6 +251,10 @@ int main(int argc, char *argv[]) {
c->ice = false; c->ice = false;
else if (param[i] >= 30 && param[i] <= 37) else if (param[i] >= 30 && param[i] <= 37)
c->fg = param[i] - 30; c->fg = param[i] - 30;
else if (param[i] >= 90 && param[i] <= 97) {
c->fg = param[i] - 90;
c->bold = true;
}
else if (param[i] >= 40 && param[i] <= 47) else if (param[i] >= 40 && param[i] <= 47)
c->bg = param[i] - 40; c->bg = param[i] - 40;
else if (param[i] == 39) else if (param[i] == 39)