<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/grid.c, branch 1.4.3</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.3</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.3'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-14T18:29:59Z</updated>
<entry>
<title>grid: reflow: use macro print_spacer() to insert multi-column character spacers</title>
<updated>2020-07-14T18:29:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T18:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b0798ad0bed7dac45c167040644df6599cc390f0'/>
<id>urn:sha1:b0798ad0bed7dac45c167040644df6599cc390f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: handle multi column character spacers</title>
<updated>2020-07-14T15:04:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T15:04:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9ea42ef226cdc92c09470a522516a2209b986281'/>
<id>urn:sha1:9ea42ef226cdc92c09470a522516a2209b986281</id>
<content type='text'>
Ignore *old* cells containing spacers.

Pad new grid with spacers if a multi-column character doesn't fit at
the end of a line.

Insert spacers after a multi-column character.
</content>
</entry>
<entry>
<title>grid: reflow: always emit *all* cells of a multi-column character</title>
<updated>2020-07-14T10:15:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T10:15:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3fd61fa1203c9061394952a5efdc864b37d64cff'/>
<id>urn:sha1:3fd61fa1203c9061394952a5efdc864b37d64cff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: use width=1 for invalid characters</title>
<updated>2020-07-14T10:03:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T10:03:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=466466c19e6d4ddf6a90e6fb7f498225890cef4d'/>
<id>urn:sha1:466466c19e6d4ddf6a90e6fb7f498225890cef4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: force line-wrap if a multi-column character does not fit on current line</title>
<updated>2020-07-14T09:03:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T09:03:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=803c87bb6565f09a60e4fa01c71bc1d43b4ebecd'/>
<id>urn:sha1:803c87bb6565f09a60e4fa01c71bc1d43b4ebecd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reflow: ensure sixels are correctly sorted when re-inserted</title>
<updated>2020-06-29T19:59:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T19:59:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a136987678afcaa7b8ad22456a0632ee8a743943'/>
<id>urn:sha1:a136987678afcaa7b8ad22456a0632ee8a743943</id>
<content type='text'>
And make sure to remove re-inserted sixels that has wrapped around the
scrollback (this may happen when the window size decreases).
</content>
</entry>
<entry>
<title>grid: reflow: delete sixels that end up crossing the scrollback wrap around</title>
<updated>2020-06-27T18:16:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T18:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=deb61d20d82bdfc45af2aa51786fa500e53b84bb'/>
<id>urn:sha1:deb61d20d82bdfc45af2aa51786fa500e53b84bb</id>
<content type='text'>
Our sixel handling code requires sixels to *not* cross the scrollback
wrap around.

Until we've fixes the reflow code that split up such sixels (much like
we do when we generate a sixel), simply delete it.
</content>
</entry>
<entry>
<title>grid: add TODO, and an assert, that sixels must not cross wrap-around</title>
<updated>2020-06-27T13:34:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:34:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=644c8ef879cfae9666cce87f83936a38dad1d34d'/>
<id>urn:sha1:644c8ef879cfae9666cce87f83936a38dad1d34d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: swap_row: remove unused parameter 'initialize'</title>
<updated>2020-05-16T21:43:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-16T21:43:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=57e04a1320f46eece193c3f807c8e058c4f3fb78'/>
<id>urn:sha1:57e04a1320f46eece193c3f807c8e058c4f3fb78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unicode-combining: store seen combining chains "globally" in the term struct</title>
<updated>2020-05-03T09:03:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-03T09:03:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=62e07743194c8051334ed9b23be90ce31ab80773'/>
<id>urn:sha1:62e07743194c8051334ed9b23be90ce31ab80773</id>
<content type='text'>
Instead of storing combining data per cell, realize that most
combinations are re-occurring and that there's lots of available space
left in the unicode range, and store seen base+combining combinations
chains in a per-terminal array.

When we encounter a combining character, we first try to pre-compose,
like before. If that fails, we then search for the current
base+combining combo in the list of previously seen combinations. If
not found there either, we allocate a new combo and add it to the
list. Regardless, the result is an index into this array. We store
this index, offsetted by COMB_CHARS_LO=0x40000000ul in the cell.

When rendering, we need to check if the cell character is a plain
character, or if it's a composed character (identified by checking if
the cell character is &gt;= COMB_CHARS_LO).

Then we render the grapheme pretty much like before.
</content>
</entry>
<entry>
<title>unicode-combine: remove utf8proc dependency</title>
<updated>2020-05-02T15:29:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-02T15:29:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d945b68b734427a03d114716ff8aeac7998a7c57'/>
<id>urn:sha1:d945b68b734427a03d114716ff8aeac7998a7c57</id>
<content type='text'>
We only used utf8proc to try to pre-compose a glyph from a base and
combining character.

We can do this ourselves by using a pre-compiled table of valid
pre-compositions. This table isn't _that_ big, and binary searching it
is fast.

That is, for a very small amount of code, and not too much extra RO
data, we can get rid of the utf8proc dependency.
</content>
</entry>
<entry>
<title>unicode-combining: completely remove unicode combining characters when feature is disabled</title>
<updated>2020-05-01T10:05:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T10:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3474624c2c17058f0fd9f3f1821971e7213d285b'/>
<id>urn:sha1:3474624c2c17058f0fd9f3f1821971e7213d285b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: copy combining characters</title>
<updated>2020-05-01T09:55:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=40bf01a8e69912397fa8ed9b9c0662bdce0e84f9'/>
<id>urn:sha1:40bf01a8e69912397fa8ed9b9c0662bdce0e84f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: add per-cell combining characters</title>
<updated>2020-05-01T09:49:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b2c4115f3e5b36ff04b2f7ff1af4d7bce787a16f'/>
<id>urn:sha1:b2c4115f3e5b36ff04b2f7ff1af4d7bce787a16f</id>
<content type='text'>
The data is *not* added to the cell struct, since that one is too
performance critical.

Instead, the data is added as a separate array in the row struct.

This allows our performance critical code paths that e.g. clear cells
to perform as before.
</content>
</entry>
<entry>
<title>util.h: new header file defining commonly used macros</title>
<updated>2020-05-01T09:46:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69c3e744983e37662fa7b4f61482fb1d142e257c'/>
<id>urn:sha1:69c3e744983e37662fa7b4f61482fb1d142e257c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: make tracking_points array 'const'</title>
<updated>2020-04-17T20:19:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T20:17:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5e2e59679b23010a04d04bbe9473dba89bd6dd30'/>
<id>urn:sha1:5e2e59679b23010a04d04bbe9473dba89bd6dd30</id>
<content type='text'>
The elements aren't, and cannot be, const. But the array itself can,
and should be.
</content>
</entry>
<entry>
<title>grid: reflow: caller may now pass a list of coordinates that should be translated</title>
<updated>2020-04-17T19:04:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T19:04:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ef52ed8a109af7512bd9e9ed62d74e36ae2deb41'/>
<id>urn:sha1:ef52ed8a109af7512bd9e9ed62d74e36ae2deb41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: generalize cursor coordinate translation</title>
<updated>2020-04-17T19:00:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T19:00:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e5521ff79af196cc44d61604bc52c69b997be091'/>
<id>urn:sha1:e5521ff79af196cc44d61604bc52c69b997be091</id>
<content type='text'>
Define a list of "tracking points" - coordinates that should be
translated while reflowing.

Add the cursor coordinates to this list.

When a coordinate have been translated, it is removed from the
list. This means we don't have to create a copy of the 'cursor'
coordinate struct.
</content>
</entry>
<entry>
<title>grid: reflow: remove commented out code</title>
<updated>2020-04-17T18:48:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T18:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=91a71b4147102e031aeb9952dfab920928998198'/>
<id>urn:sha1:91a71b4147102e031aeb9952dfab920928998198</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: turn line-wrapping code into a macro</title>
<updated>2020-04-17T18:46:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T18:46:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aede474a52460fda2773e703b886172f9db74412'/>
<id>urn:sha1:aede474a52460fda2773e703b886172f9db74412</id>
<content type='text'>
</content>
</entry>
</feed>
