summaryrefslogtreecommitdiffstats
path: root/src/sgr.c
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 19:22:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 19:22:41 (EDT)
commit8225911a9c19f5c738397488ccebf510490536f3 (patch)
treee3c42fab0df409aeae0ab600ef3a7ad2d3ed8731 /src/sgr.c
parentfa13692468790adab90c43f8b5bcce4b201f479f (diff)
image_*(), text_*(), sgr(): Add error() output
Diffstat (limited to 'src/sgr.c')
-rw-r--r--src/sgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sgr.c b/src/sgr.c
index 9faa117..4017b72 100644
--- a/src/sgr.c
+++ b/src/sgr.c
@@ -26,6 +26,9 @@
#include <png.h>
+#include "i18n.h"
+#include "output.h"
+
static png_color _4bit[] = {
{ 0, 0, 0}, /* Black */
{170, 0, 0}, /* Red */
@@ -87,6 +90,7 @@ sgr(unsigned char *param, png_colorp fg, png_colorp bg)
}
p = param + 1;
} else if (*param < '0' || *param > '9') {
+ error(_("Invalid SGR parameter \"%s\""), p);
break;
}
}