<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/grid.c, branch 1.20.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.20.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.20.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-07-01T19:00:16Z</updated>
<entry>
<title>Rename various uses of "curly" in the source code with "underline"</title>
<updated>2024-07-01T19:00:16Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2024-07-01T19:00:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=674a535fc3e1260762aaecb37af4a32581d9b0c6'/>
<id>urn:sha1:674a535fc3e1260762aaecb37af4a32581d9b0c6</id>
<content type='text'>
Since "curly" could make it seem as if all underline styles are curled
(to people unfamiliar with the codebase), whereas in reality only 1 is.
</content>
</entry>
<entry>
<title>grid: merge reflow_{uri,curly}_range_start(), and reflow_{uri,curly}_range_end()</title>
<updated>2024-06-27T17:22:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-27T17:06:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=73f6982cbeb17501b097ea6ed6ca3342d46b6c7d'/>
<id>urn:sha1:73f6982cbeb17501b097ea6ed6ca3342d46b6c7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: refactor: replace {uri,curly}_range_append() with range_append()</title>
<updated>2024-06-26T17:01:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-26T17:01:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0d3f2f27e33bdee58dc1a0e0ff6a3cb39f53056f'/>
<id>urn:sha1:0d3f2f27e33bdee58dc1a0e0ff6a3cb39f53056f</id>
<content type='text'>
Also add range_append_by_ref(), with replaces
uri_range_append_no_strdup().
</content>
</entry>
<entry>
<title>grid: row_range_put(): use correct type in call to range_delete()</title>
<updated>2024-06-26T16:39:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T18:01:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb4a74e10ba97ad37df3d065ae95a8f8efa34420'/>
<id>urn:sha1:cb4a74e10ba97ad37df3d065ae95a8f8efa34420</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: refactor: remove union range_data_for_insertion</title>
<updated>2024-06-26T16:39:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T08:26:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=45f4eb48fb6b4b651df6b466936dd425d9647400'/>
<id>urn:sha1:45f4eb48fb6b4b651df6b466936dd425d9647400</id>
<content type='text'>
This union is identical to row_range_data, except the URI char pointer
is const. Let's ignore that, and re-use row_range_data, casting the
URI pointer when necessary.

Also remove uri_range_insert() and curly_range_insert(), and use the
generic version of range_insert() everywhere.
</content>
</entry>
<entry>
<title>grid: grid_row_{uri,curly}_range_put(): share code</title>
<updated>2024-06-26T16:39:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T07:55:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6a0110446c1c96379b5b34dfdff5236a9bee311a'/>
<id>urn:sha1:6a0110446c1c96379b5b34dfdff5236a9bee311a</id>
<content type='text'>
grid_row_uri_range_put() and grid_row_curly_range_put() now share the
same base logic.

Range specific data is passed through a union, and range specific
checks are done through switched functions.
</content>
</entry>
<entry>
<title>grid: reflow: handle styled underlines</title>
<updated>2024-06-26T16:39:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-23T22:57:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b20302c2a7bcb70844f04c122c640b88be45ff60'/>
<id>urn:sha1:b20302c2a7bcb70844f04c122c640b88be45ff60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: wip: styled underlines</title>
<updated>2024-06-26T16:39:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-23T15:39:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=32effc6657c1802cdf34098748337b0d7bc39dba'/>
<id>urn:sha1:32effc6657c1802cdf34098748337b0d7bc39dba</id>
<content type='text'>
This is work in progress, and fairly untested.

This adds initial tracking of styled underlines. Setting attributes
seems to work (both color and underline style). Grid reflow has *not*
been tested.

When rendering, style is currently ignored (all styles are rendered as
a plain, legacy underline).

Color however, *is* applied.
</content>
</entry>
<entry>
<title>grid: refactor: first step towards a more generic range handling</title>
<updated>2024-06-26T16:39:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-23T11:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=20923bb2e8235c0e3d72f7c6195523ad0b0a2afa'/>
<id>urn:sha1:20923bb2e8235c0e3d72f7c6195523ad0b0a2afa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xmalloc: add xmemdup() and use to replace some uses of xmalloc+memcpy</title>
<updated>2024-03-17T11:31:02Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2024-03-16T20:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e8b04e0e2c9e8a4f825193b907d04c3b3165a842'/>
<id>urn:sha1:e8b04e0e2c9e8a4f825193b907d04c3b3165a842</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't use fancy Unicode quotes, stick to ASCII</title>
<updated>2024-02-06T11:36:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-02-06T11:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7999975016a57cc0a2c2e20bc55f29de32df7044'/>
<id>urn:sha1:7999975016a57cc0a2c2e20bc55f29de32df7044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: resize with reflow: reflow FTCS_COMMAND_{EXECUTED,FINISHED}</title>
<updated>2024-02-06T11:13:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-12-08T12:50:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=231e6eb3f10c80ce6fb151d44814504c3ce00e41'/>
<id>urn:sha1:231e6eb3f10c80ce6fb151d44814504c3ce00e41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: resize without reflow: truncate shell_integration.cmd_{start,end}</title>
<updated>2024-02-06T11:13:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-12-08T12:49:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=110a6dd6f080686f85df9dff16fbb06fe2f57a81'/>
<id>urn:sha1:110a6dd6f080686f85df9dff16fbb06fe2f57a81</id>
<content type='text'>
This ensures the cmd start/end columns are valid in the new grid.
</content>
</entry>
<entry>
<title>osc: store column of FTCS_COMMAND_{EXECUTED,FINISHED} in row struct</title>
<updated>2024-02-06T11:12:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-12-08T09:46:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e9607de5ae2eaf1a57924bb282a660150eca6eb5'/>
<id>urn:sha1:e9607de5ae2eaf1a57924bb282a660150eca6eb5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: move row-&gt;prompt_marker into new struct, row-&gt;shell_integration</title>
<updated>2024-02-06T11:12:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-12-08T09:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f8e875a7cddaac91818b98993d17a96d09a5b4a5'/>
<id>urn:sha1:f8e875a7cddaac91818b98993d17a96d09a5b4a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Codespell fixes</title>
<updated>2023-10-03T12:11:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-10-03T12:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=58d967b2f31ebe1f16bd0915f28ec93919d3fddc'/>
<id>urn:sha1:58d967b2f31ebe1f16bd0915f28ec93919d3fddc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: re-scale images when the cell dimensions change</title>
<updated>2023-06-30T06:29:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-06-29T12:49:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=49fb0cf359bb2486bbdf58df62c66c890d7e31cd'/>
<id>urn:sha1:49fb0cf359bb2486bbdf58df62c66c890d7e31cd</id>
<content type='text'>
Before this patch, when the cell dimensions changed (i.e. when the
font size changes), sixel images were either removed (the new cell
dimensions are smaller than the old), or simply kept at their original
size (new cell dimensions are larger).

With this patch, sixels are instead resized. This means a
sixel *always* occupies the same number of rows and columns,
regardless of how much the font size is changed.

This is done by maintaining two sets of image data and pixman images,
as well as their dimensions. These two sets are the new ‘original’ and
‘scaled’ members of the sixel struct.

The "top-level" pixman image pointer, and the ‘width’ and ‘height’
members either point to the "original", or the "scaled" version.

They are invalidated as soon as the cell dimensions change. They, and
the ‘scaled’ image is updated on-demand (when we need to render a
sixel).

Note that the ‘scaled’ image is always NULL when the current cell
dimensions matches the ones used when emitting the sixel (to save
run-time memory).

Closes #1383
</content>
</entry>
<entry>
<title>fix typos</title>
<updated>2023-03-28T21:45:18Z</updated>
<author>
<name>Harri Nieminen</name>
<email>moiman@posteo.net</email>
</author>
<published>2023-03-28T21:31:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ae26915916731813edc2aefeb18a5754e8c79cd4'/>
<id>urn:sha1:ae26915916731813edc2aefeb18a5754e8c79cd4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid_free(): allow being called with grid == NULL</title>
<updated>2022-10-18T16:30:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-18T16:30:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c4f08a3b9a7c6d6fc27f68e5a5c273975d42de76'/>
<id>urn:sha1:c4f08a3b9a7c6d6fc27f68e5a5c273975d42de76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: resize: assert grid-&gt;cur_row is not NULL after a grid resize</title>
<updated>2022-10-10T15:19:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-09T14:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=18ef36523f55cb8c8a6a9a9c3269274cc08c0a29'/>
<id>urn:sha1:18ef36523f55cb8c8a6a9a9c3269274cc08c0a29</id>
<content type='text'>
</content>
</entry>
</feed>
