summaryrefslogtreecommitdiffstats
path: root/src/sgr.c
diff options
context:
space:
mode:
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;
}
}