mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 12:56:22 +00:00
Make it more obvious where the wrong attribute is used.
This commit is contained in:
parent
c79df9f78d
commit
588ba51a53
1 changed files with 3 additions and 4 deletions
7
st.c
7
st.c
|
@ -1128,7 +1128,7 @@ tsetattr(int *attr, int l) {
|
||||||
fprintf(stderr, "erresc: bad fgcolor %d\n", attr[i]);
|
fprintf(stderr, "erresc: bad fgcolor %d\n", attr[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf(stderr, "erresc: gfx attr %d unknown\n", attr[i]);
|
fprintf(stderr, "erresc(38): gfx attr %d unknown\n", attr[i]);
|
||||||
break;
|
break;
|
||||||
case 39:
|
case 39:
|
||||||
term.c.attr.fg = DefaultFG;
|
term.c.attr.fg = DefaultFG;
|
||||||
|
@ -1142,7 +1142,7 @@ tsetattr(int *attr, int l) {
|
||||||
fprintf(stderr, "erresc: bad bgcolor %d\n", attr[i]);
|
fprintf(stderr, "erresc: bad bgcolor %d\n", attr[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf(stderr, "erresc: gfx attr %d unknown\n", attr[i]);
|
fprintf(stderr, "erresc(48): gfx attr %d unknown\n", attr[i]);
|
||||||
break;
|
break;
|
||||||
case 49:
|
case 49:
|
||||||
term.c.attr.bg = DefaultBG;
|
term.c.attr.bg = DefaultBG;
|
||||||
|
@ -1157,8 +1157,7 @@ tsetattr(int *attr, int l) {
|
||||||
else if(BETWEEN(attr[i], 100, 107))
|
else if(BETWEEN(attr[i], 100, 107))
|
||||||
term.c.attr.fg = attr[i] - 100 + 8;
|
term.c.attr.fg = attr[i] - 100 + 8;
|
||||||
else
|
else
|
||||||
fprintf(stderr, "erresc: gfx attr %d unknown\n", attr[i]), csidump();
|
fprintf(stderr, "erresc(default): gfx attr %d unknown\n", attr[i]), csidump();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue