<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/sixel.h, branch 1.4.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-06-29T20:03:26Z</updated>
<entry>
<title>Merge branch 'master' into sixel-performance</title>
<updated>2020-06-29T20:03:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T20:03:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fad5838dbaba327ea16496bbe768056b10041897'/>
<id>urn:sha1:fad5838dbaba327ea16496bbe768056b10041897</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scroll: destroy scrolled out sixels before scroll is applied</title>
<updated>2020-06-29T20:01:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T20:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=62be729c45ade3759ab0084808bbea491ca5c587'/>
<id>urn:sha1:62be729c45ade3759ab0084808bbea491ca5c587</id>
<content type='text'>
The logic that breaks out of sixel loops does not work for rows that
has already wrapped around.

Thus, we need to destroy sixels that are about to be scrolled
out *before* we actually scroll.

Since this is the *only* time we destroy sixels (instead of
overwriting it), rename the sixel functions. And, since they now do a
very specific thing, they can be greatly simplified (and thus faster).
</content>
</entry>
<entry>
<title>sixel: destroy all sixels when font size is decreased</title>
<updated>2020-06-29T19:53:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T19:53:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4'/>
<id>urn:sha1:8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4</id>
<content type='text'>
If changing the font size causes the cell size to decrease, either
horizontally or vertically (or both), then delete all sixels since the
grid space they allocated no longer is enough to hold the images.
</content>
</entry>
<entry>
<title>sixel: overwrite: pass 'width' to sixel_overwrite_at_cursor()</title>
<updated>2020-06-28T09:01:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T09:01:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4006fc86e4af90bb302e0da98dbbcc8152950f12'/>
<id>urn:sha1:4006fc86e4af90bb302e0da98dbbcc8152950f12</id>
<content type='text'>
This is necessary to handle multi-column characters correctly.
</content>
</entry>
<entry>
<title>sixel: improve descriptions of sixel_delete_* and sixel_overwrite_*</title>
<updated>2020-06-27T13:32:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1915e53629f93184e3b82d73dea2bd22cc5a780c'/>
<id>urn:sha1:1915e53629f93184e3b82d73dea2bd22cc5a780c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: split -&gt; overwrite</title>
<updated>2020-06-27T13:29:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:29:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=186a07c364536dd482938ba9a0ce0a4d7e6d74c6'/>
<id>urn:sha1:186a07c364536dd482938ba9a0ce0a4d7e6d74c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: erasing characters now splits sixels instead of deleting them</title>
<updated>2020-06-27T13:22:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:22:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ae727e372abfb5cd516f1fbab0fff28499f7d02b'/>
<id>urn:sha1:ae727e372abfb5cd516f1fbab0fff28499f7d02b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: refactor handling of wrap-around delete- and split regions</title>
<updated>2020-06-27T11:56:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T11:56:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e896c2fa5575120469e7571d590bf03e4f5c803c'/>
<id>urn:sha1:e896c2fa5575120469e7571d590bf03e4f5c803c</id>
<content type='text'>
Handle these on a higher abstraction level. The low level functions
that detect sixel intersections now assume the specified rectangle (or
line region) does *not* cross the wrap-around.

This is ensured by detecting a wrap-around region before hand, and
splitting it up into two, non wrapping regions.
</content>
</entry>
<entry>
<title>sixel: add sixel_split_by_rectangle()</title>
<updated>2020-06-27T10:45:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T10:45:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dfc205e706ef261edcbae0e04e8ba5e1d225a886'/>
<id>urn:sha1:dfc205e706ef261edcbae0e04e8ba5e1d225a886</id>
<content type='text'>
This function splits a sixel image into up to four pieces. The four
pieces correspond to the relative complement (set difference) of the
sixel image and the specified rectangle.

Use this function when (possibly) overwriting existing sixel images
when generating a new one, i.e. in sixel_unhook().
</content>
</entry>
<entry>
<title>sixel: wip: split up image being overwritten, rather than erasing it</title>
<updated>2020-06-23T19:07:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-23T19:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bc82d4ee28b0ca0e86b096069b7a61cbb082a93b'/>
<id>urn:sha1:bc82d4ee28b0ca0e86b096069b7a61cbb082a93b</id>
<content type='text'>
Instead of completely erasing a sixel image when it is being
"overwritten" (text is printed somewhere within the image, or another
sixel image is emitted within the first image), split it up into up to
four pieces: 'above', 'below', 'to-the-left' and 'to-the-right'.

This is currently very un-optimized, but seems to produce correct
results.
</content>
</entry>
<entry>
<title>sixel: do not reset palette after each image</title>
<updated>2020-06-10T16:38:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-10T16:36:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc5dedc259c4157516915e109b77ac88b9943a55'/>
<id>urn:sha1:cc5dedc259c4157516915e109b77ac88b9943a55</id>
<content type='text'>
A client can re-use the palette between images. Resetting the palette
breaks this.

Now we initialize the palette on demand, and resets it when the
palette size is changed (by the client).
</content>
</entry>
<entry>
<title>sixel: add sixel_delete_at_row and sixel_delete_in_range</title>
<updated>2020-02-24T17:42:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-24T17:39:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=95f7c5586c7f8d647ed38645599ace39fb82c989'/>
<id>urn:sha1:95f7c5586c7f8d647ed38645599ace39fb82c989</id>
<content type='text'>
These are utility functions to erase sixel images that are at the
specified row, or in a row range.
</content>
</entry>
<entry>
<title>sixel: rename: purge_at_cursor() -&gt; delete_at_cursor()</title>
<updated>2020-02-22T22:06:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T22:06:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=86d640ef71938a621e08461701b20203d37ae2a9'/>
<id>urn:sha1:86d640ef71938a621e08461701b20203d37ae2a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: purge images at current cursor row</title>
<updated>2020-02-22T20:35:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=80361ca04e12b65396d27fa1d981f6739861e453'/>
<id>urn:sha1:80361ca04e12b65396d27fa1d981f6739861e453</id>
<content type='text'>
When printing a character, or starting a new sixel image, purge all
images that cover the cursor's current row.
</content>
</entry>
<entry>
<title>sixel: application configurable image max width/height</title>
<updated>2020-02-22T20:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25b09b909ca39cee6432ffd10e179336dbc178e1'/>
<id>urn:sha1:25b09b909ca39cee6432ffd10e179336dbc178e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: application configurable palette size (color count)</title>
<updated>2020-02-22T13:02:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T13:02:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39'/>
<id>urn:sha1:8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39</id>
<content type='text'>
This implements the CSI escapes for retrieving and (re)setting the
palette size.
</content>
</entry>
<entry>
<title>sixel: add sixel_destroy()</title>
<updated>2020-02-21T23:23:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-21T23:23:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb82b9fabc00e1fadca6fe630e91f07dbe1168b3'/>
<id>urn:sha1:bb82b9fabc00e1fadca6fe630e91f07dbe1168b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: initial support</title>
<updated>2020-02-21T20:53:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-21T20:53:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266'/>
<id>urn:sha1:9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266</id>
<content type='text'>
This implements basic parsing of sixel data. Lots of limitations and
temporary solutions as this is still work-in-progress:

* Maximum image size hardcoded to 800x800
* No HLS color format support
* Image is always rendered at 0x0 in the terminal
</content>
</entry>
</feed>
