[vte/wip/sixels: 5/82] sixels: Start in the PS_DECSIXEL state.
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 5/82] sixels: Start in the PS_DECSIXEL state.
- Date: Fri, 26 Jun 2020 00:43:30 +0000 (UTC)
commit 5f1cffcdbed42db3da7944d27d9117961054bbcb
Author: Hans Petter Jansson <hpj cl no>
Date: Sun May 24 03:32:25 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]