diff options
author | Patrick 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) |
commit | 8225911a9c19f5c738397488ccebf510490536f3 (patch) | |
tree | e3c42fab0df409aeae0ab600ef3a7ad2d3ed8731 /src/sgr.c | |
parent | fa13692468790adab90c43f8b5bcce4b201f479f (diff) |
image_*(), text_*(), sgr(): Add error() output
Diffstat (limited to 'src/sgr.c')
-rw-r--r-- | src/sgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } } |