aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-02 19:42:00 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-02 19:42:00 +0200
commite2f6df0d17a3601a7008ec2c0881973741f1a863 (patch)
tree2c60520f68c3cc8452d0f6a099aec223374103bf
parent7988713b358ad709c6b311a62fa0cd4f0b30e000 (diff)
downloadst-e2f6df0d17a3601a7008ec2c0881973741f1a863.tar.gz
st-e2f6df0d17a3601a7008ec2c0881973741f1a863.tar.bz2
Make it more obvious where the wrong attribute is used.
-rw-r--r--st.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/st.c b/st.c
index f3f7f28..9ad4f89 100644
--- a/st.c
+++ b/st.c
@@ -1128,7 +1128,7 @@ tsetattr(int *attr, int l) {
fprintf(stderr, "erresc: bad fgcolor %d\n", attr[i]);
}
else
- fprintf(stderr, "erresc: gfx attr %d unknown\n", attr[i]);
+ fprintf(stderr, "erresc(38): gfx attr %d unknown\n", attr[i]);
break;
case 39:
term.c.attr.fg = DefaultFG;
@@ -1142,7 +1142,7 @@ tsetattr(int *attr, int l) {
fprintf(stderr, "erresc: bad bgcolor %d\n", attr[i]);
}
else
- fprintf(stderr, "erresc: gfx attr %d unknown\n", attr[i]);
+ fprintf(stderr, "erresc(48): gfx attr %d unknown\n", attr[i]);
break;
case 49:
term.c.attr.bg = DefaultBG;
@@ -1157,8 +1157,7 @@ tsetattr(int *attr, int l) {
else if(BETWEEN(attr[i], 100, 107))
term.c.attr.fg = attr[i] - 100 + 8;
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;
}
}