Hello community, here is the log from the commit of package chafa for openSUSE:Factory checked in at 2020-04-13 12:54:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/chafa (Old) and /work/SRC/openSUSE:Factory/.chafa.new.3248 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "chafa" Mon Apr 13 12:54:45 2020 rev:6 rq:793444 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/chafa/chafa.changes 2020-04-02 17:44:10.249443479 +0200 +++ /work/SRC/openSUSE:Factory/.chafa.new.3248/chafa.changes 2020-04-13 12:54:49.156688170 +0200 @@ -1,0 +2,16 @@ +Sun Apr 12 21:17:36 UTC 2020 - Michael Vetter <[email protected]> + +- Update to 1.4.1: + * Added configure option --disable-rpath. This allows packagers to + prevent the hard-coded library search path from being embedded in + the chafa command-line tool (Mo Zhou, #39). + * Added defaults for the yaft terminal. + Bug fixes: + * #40 - Fails to build on hurd-i386 + other i386 (reported by Mo + Zhou). + * [unfiled] - Rare failed assert with mostly transparent sixel image + (reported by Reddit user spryfigure). + * [unfiled] - Minor typo in function docstring. + + +------------------------------------------------------------------- Old: ---- chafa-1.4.0.tar.xz New: ---- chafa-1.4.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chafa.spec ++++++ --- /var/tmp/diff_new_pack.4WNu7e/_old 2020-04-13 12:54:50.164688609 +0200 +++ /var/tmp/diff_new_pack.4WNu7e/_new 2020-04-13 12:54:50.168688610 +0200 @@ -17,7 +17,7 @@ Name: chafa -Version: 1.4.0 +Version: 1.4.1 Release: 0 Summary: Image-to-text converter for terminal License: LGPL-3.0-or-later @@ -92,7 +92,7 @@ %files -n libchafa0 %license COPYING.LESSER %{_libdir}/lib%{name}.so.0 -%{_libdir}/lib%{name}.so.0.3.0 +%{_libdir}/lib%{name}.so.0.4.0 %files devel %license COPYING.LESSER ++++++ chafa-1.4.0.tar.xz -> chafa-1.4.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/Makefile.in new/chafa-1.4.1/Makefile.in --- old/chafa-1.4.0/Makefile.in 2020-04-01 04:06:39.000000000 +0200 +++ new/chafa-1.4.1/Makefile.in 2020-04-10 20:21:30.000000000 +0200 @@ -193,7 +193,7 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/chafa.pc.in \ $(srcdir)/config.h.in AUTHORS COPYING COPYING.LESSER INSTALL \ NEWS README TODO ar-lib compile config.guess config.sub \ - depcomp install-sh ltmain.sh missing + install-sh ltmain.sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/NEWS new/chafa-1.4.1/NEWS --- old/chafa-1.4.0/NEWS 2020-04-01 17:48:05.000000000 +0200 +++ new/chafa-1.4.1/NEWS 2020-04-10 20:06:06.000000000 +0200 @@ -1,6 +1,24 @@ Chafa releases ============== +1.4.1 (2020-04-10) +------------------ + +This is a bugfix release. + +* Added configure option --disable-rpath. This allows packagers to + prevent the hard-coded library search path from being embedded in + the chafa command-line tool (Mo Zhou, github#39). + +* Added defaults for the yaft terminal. + +* Bug fixes: + github#40 Fails to build on hurd-i386 + other i386 (reported by + Mo Zhou). + [unfiled] Rare failed assert with mostly transparent sixel image + (reported by Reddit user spryfigure). + [unfiled] Minor typo in function docstring. + 1.4.0 (2020-04-01) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/chafa/Makefile.am new/chafa-1.4.1/chafa/Makefile.am --- old/chafa-1.4.0/chafa/Makefile.am 2020-04-01 02:29:46.000000000 +0200 +++ new/chafa-1.4.1/chafa/Makefile.am 2020-04-10 20:01:41.000000000 +0200 @@ -8,7 +8,7 @@ noinst_LTLIBRARIES = libchafa_la_CFLAGS = $(LIBCHAFA_CFLAGS) $(GLIB_CFLAGS) -DCHAFA_COMPILATION -libchafa_la_LDFLAGS = $(LIBCHAFA_LDFLAGS) -version-info 3:0:3 +libchafa_la_LDFLAGS = $(LIBCHAFA_LDFLAGS) -version-info 4:0:4 libchafa_la_LIBADD = $(GLIB_LIBS) internal/libchafa-internal.la -lm libchafa_la_SOURCES = \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/chafa/Makefile.in new/chafa-1.4.1/chafa/Makefile.in --- old/chafa-1.4.0/chafa/Makefile.in 2020-04-01 04:06:39.000000000 +0200 +++ new/chafa-1.4.1/chafa/Makefile.in 2020-04-10 20:21:30.000000000 +0200 @@ -416,7 +416,7 @@ lib_LTLIBRARIES = libchafa.la noinst_LTLIBRARIES = libchafa_la_CFLAGS = $(LIBCHAFA_CFLAGS) $(GLIB_CFLAGS) -DCHAFA_COMPILATION -libchafa_la_LDFLAGS = $(LIBCHAFA_LDFLAGS) -version-info 3:0:3 +libchafa_la_LDFLAGS = $(LIBCHAFA_LDFLAGS) -version-info 4:0:4 libchafa_la_LIBADD = $(GLIB_LIBS) internal/libchafa-internal.la -lm libchafa_la_SOURCES = \ chafa-canvas.c \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/chafa/chafa-symbol-map.c new/chafa-1.4.1/chafa/chafa-symbol-map.c --- old/chafa-1.4.0/chafa/chafa-symbol-map.c 2020-04-01 04:06:33.000000000 +0200 +++ new/chafa-1.4.1/chafa/chafa-symbol-map.c 2020-04-10 20:01:41.000000000 +0200 @@ -1243,7 +1243,7 @@ * @height: Height of glyph, in pixels * @rowstride: Offset from start of one row to the next, in bytes * - * Assigns a rendered glyph t a Unicode code point. This tells Chafa what the + * Assigns a rendered glyph to a Unicode code point. This tells Chafa what the * glyph looks like so the corresponding symbol can be used appropriately in * output. * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/chafa/internal/chafa-mmx.c new/chafa-1.4.1/chafa/internal/chafa-mmx.c --- old/chafa-1.4.0/chafa/internal/chafa-mmx.c 2020-04-01 04:06:33.000000000 +0200 +++ new/chafa-1.4.1/chafa/internal/chafa-mmx.c 2020-04-10 19:19:12.000000000 +0200 @@ -44,8 +44,8 @@ *m64p1 = _mm_adds_pi16 (*m64p1, m64a); } - ((guint64 *) accums_out) [0] = _mm_cvtm64_si64 (accum [0]); - ((guint64 *) accums_out) [1] = _mm_cvtm64_si64 (accum [1]); + ((__m64 *) accums_out) [0] = accum [0]; + ((__m64 *) accums_out) [1] = accum [1]; #if 0 /* Called after outer loop is done */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/chafa/internal/chafa-palette.c new/chafa-1.4.1/chafa/internal/chafa-palette.c --- old/chafa-1.4.0/chafa/internal/chafa-palette.c 2020-04-01 02:29:46.000000000 +0200 +++ new/chafa-1.4.1/chafa/internal/chafa-palette.c 2020-04-10 19:19:12.000000000 +0200 @@ -361,15 +361,13 @@ #define N_SAMPLES 32768 static gint -extract_samples (gconstpointer pixels, gpointer pixels_out, gint n_pixels, gint n_samples, +extract_samples (gconstpointer pixels, gpointer pixels_out, gint n_pixels, gint step, gint alpha_threshold) { const guint32 *p = pixels; guint32 *p_out = pixels_out; - gint step; gint i; - step = (n_pixels / n_samples) + 1; step = MAX (step, 1); for (i = 0; i < n_pixels; i += step) @@ -383,6 +381,33 @@ return ((ptrdiff_t) p_out - (ptrdiff_t) pixels_out) / 4; } +static gint +extract_samples_dense (gconstpointer pixels, gpointer pixels_out, gint n_pixels, + gint n_samples_max, gint alpha_threshold) +{ + const guint32 *p = pixels; + guint32 *p_out = pixels_out; + gint n_samples = 0; + gint i; + + g_assert (n_samples_max > 0); + + for (i = 0; i < n_pixels; i++) + { + gint alpha = p [i] >> 24; + if (alpha < alpha_threshold) + continue; + + *(p_out++) = p [i]; + + n_samples++; + if (n_samples == n_samples_max) + break; + } + + return n_samples; +} + static void clean_up (ChafaPalette *palette_out) { @@ -527,13 +552,23 @@ ChafaColorSpace color_space) { guint32 *pixels_copy; + gint step; gint copy_n_pixels; if (palette_out->type != CHAFA_PALETTE_TYPE_DYNAMIC_256) return; pixels_copy = g_malloc (N_SAMPLES * sizeof (guint32)); - copy_n_pixels = extract_samples (pixels, pixels_copy, n_pixels, N_SAMPLES, palette_out->alpha_threshold); + + step = (n_pixels / N_SAMPLES) + 1; + copy_n_pixels = extract_samples (pixels, pixels_copy, n_pixels, step, + palette_out->alpha_threshold); + + /* If we recovered very few (potentially zero) samples, it could be due to + * the image being mostly transparent. Resample at full density if so. */ + if (copy_n_pixels < 256 && step != 1) + copy_n_pixels = extract_samples_dense (pixels, pixels_copy, n_pixels, N_SAMPLES, + palette_out->alpha_threshold); DEBUG (g_printerr ("Extracted %d samples.\n", copy_n_pixels)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/configure new/chafa-1.4.1/configure --- old/chafa-1.4.0/configure 2020-04-01 04:06:40.000000000 +0200 +++ new/chafa-1.4.1/configure 2020-04-10 20:21:30.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for chafa 1.4.0. +# Generated by GNU Autoconf 2.69 for chafa 1.4.1. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='chafa' PACKAGE_TARNAME='chafa' -PACKAGE_VERSION='1.4.0' -PACKAGE_STRING='chafa 1.4.0' +PACKAGE_VERSION='1.4.1' +PACKAGE_STRING='chafa 1.4.1' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -636,6 +636,8 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +ENABLE_RPATH_FALSE +ENABLE_RPATH_TRUE CHAFA_LDFLAGS CHAFA_CFLAGS LIBCHAFA_LDFLAGS @@ -826,6 +828,7 @@ enable_man with_xml_catalog enable_Bsymbolic +enable_rpath ' ac_precious_vars='build_alias host_alias @@ -1388,7 +1391,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures chafa 1.4.0 to adapt to many kinds of systems. +\`configure' configures chafa 1.4.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1458,7 +1461,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of chafa 1.4.0:";; + short | recursive ) echo "Configuration of chafa 1.4.1:";; esac cat <<\_ACEOF @@ -1485,6 +1488,7 @@ --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] --enable-man generate man pages [default=auto] --disable-Bsymbolic avoid linking with -Bsymbolic + --enable-rpath use rpath [default=yes] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1599,7 +1603,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -chafa configure 1.4.0 +chafa configure 1.4.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1968,7 +1972,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by chafa $as_me 1.4.0, which was +It was created by chafa $as_me 1.4.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2831,7 +2835,7 @@ # Define the identity of the package. PACKAGE='chafa' - VERSION='1.4.0' + VERSION='1.4.1' cat >>confdefs.h <<_ACEOF @@ -2933,8 +2937,8 @@ CHAFA_MAJOR_VERSION=1 CHAFA_MINOR_VERSION=4 -CHAFA_MICRO_VERSION=0 -CHAFA_VERSION=1.4.0 +CHAFA_MICRO_VERSION=1 +CHAFA_VERSION=1.4.1 @@ -2948,7 +2952,7 @@ $as_echo "#define CHAFA_MINOR_VERSION 4" >>confdefs.h -$as_echo "#define CHAFA_MICRO_VERSION 0" >>confdefs.h +$as_echo "#define CHAFA_MICRO_VERSION 1" >>confdefs.h cat >>confdefs.h <<_ACEOF @@ -14849,6 +14853,23 @@ +# Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; +else + enable_rpath=yes +fi + + + if test "$enable_rpath" == yes; then + ENABLE_RPATH_TRUE= + ENABLE_RPATH_FALSE='#' +else + ENABLE_RPATH_TRUE='#' + ENABLE_RPATH_FALSE= +fi + + ac_config_files="$ac_config_files Makefile chafa/Makefile chafa/chafaconfig.h chafa/internal/Makefile chafa/internal/smolscale/Makefile libnsgif/Makefile chafa.pc docs/Makefile docs/version.xml tools/Makefile tools/chafa/Makefile tools/fontgen/Makefile" @@ -15048,6 +15069,10 @@ as_fn_error $? "conditional \"HAVE_POPCNT_INTRINSICS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -15445,7 +15470,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by chafa $as_me 1.4.0, which was +This file was extended by chafa $as_me 1.4.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15511,7 +15536,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -chafa config.status 1.4.0 +chafa config.status 1.4.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/configure.ac new/chafa-1.4.1/configure.ac --- old/chafa-1.4.0/configure.ac 2020-04-01 04:06:33.000000000 +0200 +++ new/chafa-1.4.1/configure.ac 2020-04-10 20:20:20.000000000 +0200 @@ -6,7 +6,7 @@ m4_define([chafa_major_version], [1]) m4_define([chafa_minor_version], [4]) -m4_define([chafa_micro_version], [0]) +m4_define([chafa_micro_version], [1]) m4_define([chafa_version], [chafa_major_version.chafa_minor_version.chafa_micro_version]) @@ -399,6 +399,13 @@ AC_SUBST(CHAFA_CFLAGS) AC_SUBST(CHAFA_LDFLAGS) +AC_ARG_ENABLE(rpath, + [AS_HELP_STRING([--enable-rpath], + [use rpath [default=yes]])],, + enable_rpath=yes) + +AM_CONDITIONAL(ENABLE_RPATH, test "$enable_rpath" == yes) + dnl --- Output --- AC_OUTPUT(Makefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/docs/chafa.1 new/chafa-1.4.1/docs/chafa.1 --- old/chafa-1.4.0/docs/chafa.1 2020-04-01 04:06:59.000000000 +0200 +++ new/chafa-1.4.1/docs/chafa.1 2020-04-10 20:08:10.000000000 +0200 @@ -2,7 +2,7 @@ .\" Title: chafa .\" Author: Hans Petter Jansson .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 03/31/2020 +.\" Date: 04/10/2020 .\" Manual: User Commands .\" Source: chafa .\" Language: English diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/docs/html/chafa-ChafaSymbolMap.html new/chafa-1.4.1/docs/html/chafa-ChafaSymbolMap.html --- old/chafa-1.4.0/docs/html/chafa-ChafaSymbolMap.html 2020-04-01 18:43:58.000000000 +0200 +++ new/chafa-1.4.1/docs/html/chafa-ChafaSymbolMap.html 2020-04-10 20:24:14.000000000 +0200 @@ -542,7 +542,7 @@ <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>, <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);</pre> -<p>Assigns a rendered glyph t a Unicode code point. This tells Chafa what the +<p>Assigns a rendered glyph to a Unicode code point. This tells Chafa what the glyph looks like so the corresponding symbol can be used appropriately in output.</p> <p>Assigned glyphs override built-in glyphs and any earlier glyph that may diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/docs/html/index.html new/chafa-1.4.1/docs/html/index.html --- old/chafa-1.4.0/docs/html/index.html 2020-04-01 18:43:58.000000000 +0200 +++ new/chafa-1.4.1/docs/html/index.html 2020-04-10 20:24:14.000000000 +0200 @@ -15,7 +15,7 @@ <div> <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Chafa Reference Manual</p></th></tr></table></div> <div><p class="releaseinfo"> - For Chafa version 1.4.0 + For Chafa version 1.4.1 . The latest version of this documentation can be found online at <a class="ulink" href="https://hpjansson.org/chafa/ref/index.html" target="_top">https://hpjansson.org/chafa/ref/</a>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/tools/chafa/Makefile.am new/chafa-1.4.1/tools/chafa/Makefile.am --- old/chafa-1.4.0/tools/chafa/Makefile.am 2020-03-25 23:26:55.000000000 +0100 +++ new/chafa-1.4.1/tools/chafa/Makefile.am 2020-04-10 19:19:12.000000000 +0200 @@ -21,7 +21,9 @@ # See Github issue #32. chafa_CFLAGS = $(CHAFA_CFLAGS) $(GLIB_CFLAGS) $(MAGICKWAND_CFLAGS) $(FREETYPE_CFLAGS) +if ENABLE_RPATH chafa_LDFLAGS = $(CHAFA_LDFLAGS) -rpath $(libdir) +endif chafa_LDADD = $(GLIB_LIBS) $(MAGICKWAND_LIBS) $(FREETYPE_LIBS) $(top_builddir)/chafa/libchafa.la $(top_builddir)/libnsgif/libnsgif.la endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/tools/chafa/Makefile.in new/chafa-1.4.1/tools/chafa/Makefile.in --- old/chafa-1.4.0/tools/chafa/Makefile.in 2020-04-01 04:06:40.000000000 +0200 +++ new/chafa-1.4.1/tools/chafa/Makefile.in 2020-04-10 20:21:30.000000000 +0200 @@ -356,7 +356,7 @@ # installed outside /usr (e.g. the default /usr/local). This affects Ubuntu. # See Github issue #32. @WANT_TOOLS_TRUE@chafa_CFLAGS = $(CHAFA_CFLAGS) $(GLIB_CFLAGS) $(MAGICKWAND_CFLAGS) $(FREETYPE_CFLAGS) -@WANT_TOOLS_TRUE@chafa_LDFLAGS = $(CHAFA_LDFLAGS) -rpath $(libdir) +@ENABLE_RPATH_TRUE@@WANT_TOOLS_TRUE@chafa_LDFLAGS = $(CHAFA_LDFLAGS) -rpath $(libdir) @WANT_TOOLS_TRUE@chafa_LDADD = $(GLIB_LIBS) $(MAGICKWAND_LIBS) $(FREETYPE_LIBS) $(top_builddir)/chafa/libchafa.la $(top_builddir)/libnsgif/libnsgif.la AM_CPPFLAGS = \ -I$(top_srcdir)/chafa \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/chafa-1.4.0/tools/chafa/chafa.c new/chafa-1.4.1/tools/chafa/chafa.c --- old/chafa-1.4.0/tools/chafa/chafa.c 2020-04-01 04:06:33.000000000 +0200 +++ new/chafa-1.4.1/tools/chafa/chafa.c 2020-04-10 20:01:41.000000000 +0200 @@ -819,8 +819,13 @@ mode = CHAFA_CANVAS_MODE_TRUECOLOR; /* mlterm's truecolor support seems to be broken; it looks like a color - * allocation issue. This affects characters cells, but not sixels. */ - if (!strcmp (term, "mlterm")) + * allocation issue. This affects character cells, but not sixels. + * + * yaft supports sixels and truecolor escape codes, but it remaps cell + * colors to a 256-color palette. */ + if (!strcmp (term, "mlterm") + || !strcmp (term, "yaft") + || !strcmp (term, "yaft-256color")) { /* The default canvas mode is truecolor for sixels. 240 colors is * the default for symbols. */
