summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bin/shotty.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/shotty.l b/bin/shotty.l
index c33b1f8b..c676d15b 100644
--- a/bin/shotty.l
+++ b/bin/shotty.l
@@ -498,7 +498,7 @@ static void span(const struct Cell *prev, const struct Cell *cell) {
 		if (attr & Bold) printf("font-weight:bold;");
 		if (attr & Italic) printf("font-style:italic;");
 		if (attr & Underline) printf("text-decoration:underline;");
-		if (colors) {
+		if (colors && bg < 256 && fg < 256) {
 			printf(
 				"background-color:#%06X;color:#%06X;",
 				Palette[bg], Palette[fg]