[vte/wip/sixels: 15/111] sixels: Start in the PS_DECSIXEL state.




commit d403e9f68b3441b3f1575ac720254b7c84469dd9
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:48 2020 +0200

    sixels: Start in the PS_DECSIXEL state.

 src/sixel.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/sixel.cc b/src/sixel.cc
index 0e06ca66..d26684e0 100644
--- a/src/sixel.cc
+++ b/src/sixel.cc
@@ -261,7 +261,12 @@ sixel_parser_init(sixel_state_t *st,
 {
        int status = (-1);
 
-       st->state = PS_DCS;
+        /* FIXME-hpj: This used to be PS_DCS, but the VTE sequence parses the
+         * initial parameters for us, up to and including the leading 'q'. We
+         * therefore skip directly to the PS_DECSIXEL state.
+         *
+         * We may need to pass the initial parameters to this parser. */
+       st->state = PS_DECSIXEL;
        st->pos_x = 0;
        st->pos_y = 0;
        st->max_x = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]