From 58bbbb0a319687774e7c06edf52b17bb79d6085a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 3 Feb 2022 19:24:03 +0100 Subject: [PATCH] sixel: revert to default state when an invalid DECGRI character is received --- sixel.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } }