[hackers] [st] Make it more obvious where the wrong attribute is used. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sun, 2 Sep 2012 19:55:58 +0200 (CEST)

changeset: 259:9b5795712f55
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sun Sep 02 19:42:00 2012 +0200
files: st.c
description:
Make it more obvious where the wrong attribute is used.


diff -r e3e8375912ae -r 9b5795712f55 st.c
--- a/st.c Sun Sep 02 19:09:35 2012 +0200
+++ b/st.c Sun Sep 02 19:42:00 2012 +0200
_AT_@ -1128,7 +1128,7 @@
                                         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;
_AT_@ -1142,7 +1142,7 @@
                                         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;
_AT_@ -1157,8 +1157,7 @@
                         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;
                 }
         }
Received on Sun Sep 02 2012 - 19:55:58 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 02 2012 - 20:00:08 CEST