aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-03 18:24:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-04 17:14:25 +0000
commit58bbbb0a319687774e7c06edf52b17bb79d6085a (patch)
tree34cd7ad16c5d0dd5e7d74671f6bfdccf5a00ccf6
parentsixel: DECGRI (repeat) with a count of 0 should emit a single sixel (diff)
sixel: revert to default state when an invalid DECGRI character is received
-rw-r--r--sixel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index fbd0f077..5316c0ad 100644
--- a/sixel.c
+++ b/sixel.c
@@ -1456,6 +1456,11 @@ decgri(struct terminal *term, uint8_t c)
term->sixel.state = SIXEL_DECSIXEL;
break;
}
+
+ default:
+ term->sixel.state = SIXEL_DECSIXEL;
+ sixel_put(term, c);
+ break;
}
}