<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git, branch multi-cursor</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=multi-cursor</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=multi-cursor'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2025-08-31T08:28:10Z</updated>
<entry>
<title>csi: multi-cursor: refactor: loop boxes directly, without indexing</title>
<updated>2025-08-31T08:28:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T08:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7c4ac3f3485aadb4a0a40701671b86384e2260af'/>
<id>urn:sha1:7c4ac3f3485aadb4a0a40701671b86384e2260af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>multi-cursor: refactor: add function for dirtying/damaging all multi-cursors</title>
<updated>2025-08-31T08:25:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T08:25:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=265c93c4c4199fa131476fdbd9eacb9d2fcf51c6'/>
<id>urn:sha1:265c93c4c4199fa131476fdbd9eacb9d2fcf51c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: dirty all multi-cursor cells *after* rendering a frame</title>
<updated>2025-08-31T07:29:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T07:29:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4f89c461b15543cebdd3cc1d5112894a5986418f'/>
<id>urn:sha1:4f89c461b15543cebdd3cc1d5112894a5986418f</id>
<content type='text'>
This ensures they're re-rendered the next frame, and fixes an issue
were multi-cursors weren't erased when scrolled. That is, they
scrolled with the content, *and* was re-drawn at the correct (fixed)
location they were scrolled away from.

Since multi-cursors shouldn't scroll with the content, they need to be
erased when the content is scrolled.
</content>
</entry>
<entry>
<title>render: multi-cursor: dirty all multi-cursors before rendering</title>
<updated>2025-08-31T07:23:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T07:23:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4907c5d08a56a4c37d85e83b65723b678c853fe1'/>
<id>urn:sha1:4907c5d08a56a4c37d85e83b65723b678c853fe1</id>
<content type='text'>
In most cases, this isn't necessary, since the cursors don't move (and
when the application adds/deletes multi-cursors, we dirty the grid
_then_).

However, when we scroll the viewport, we're basically memmov:ing grid
contents without re-rendering, this can cause multi-cursors to be
"overwritten", and thus we need to explicitly re-render them.

Note: there's still an issue where scrolling content *with* a
multi-cursor doesn't correctly erase the scrolled multi-cursor.
</content>
</entry>
<entry>
<title>render: multi-cursor: translate view-based row number to absolute</title>
<updated>2025-08-31T07:23:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T07:23:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc02902db0627dfbb5c290a35c1c0480a916d2bb'/>
<id>urn:sha1:cc02902db0627dfbb5c290a35c1c0480a916d2bb</id>
<content type='text'>
Otherwise we'll lookup the wrong multi-cursor shape.
</content>
</entry>
<entry>
<title>csi: multi-cursor: allocate grid-&gt;num_rows rows</title>
<updated>2025-08-31T07:22:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T07:22:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7dbccefeeaa7ad86a4461e831468b709b0156b7c'/>
<id>urn:sha1:7dbccefeeaa7ad86a4461e831468b709b0156b7c</id>
<content type='text'>
This way, we can safely index with any correctly wrapped row number
</content>
</entry>
<entry>
<title>multi-cursor: bug: use grid_row() when accessing rows</title>
<updated>2025-08-31T05:26:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-31T05:26:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8bfbbc89fd2931c63eeb26e5de032cfbc8b459be'/>
<id>urn:sha1:8bfbbc89fd2931c63eeb26e5de032cfbc8b459be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term_remove_all_multi_cursors(): early return if no extra cursors are active</title>
<updated>2025-08-29T11:21:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-29T11:21:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1055d32e9f6de10053783d5362ae5bfcbaf996fe'/>
<id>urn:sha1:1055d32e9f6de10053783d5362ae5bfcbaf996fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: fix hollow cursor style for "extra" cursors</title>
<updated>2025-08-29T10:48:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-29T10:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fba9bb6853695d039913ac8cec2025f2239f22f4'/>
<id>urn:sha1:fba9bb6853695d039913ac8cec2025f2239f22f4</id>
<content type='text'>
When the cursor is "block style", i.e. either when the window is
focused and the cursor is block, or when unfocused and we're supposed
to draw a hollow cursor, then we need to draw it *before* compositing
the glyph.

In all other cases (i.e. beam and underline cursors), it should be
rendered after the glyph.

With the addition of "extra" cursors, the logic for determining which
type it is has become much more complex, and the single if-statement
we had was wrong (it didn't handle "extra" cursors correctly).

Fix by splitting up all the checks into multiple if-statements.
</content>
</entry>
<entry>
<title>csi: disable debug logging (again)</title>
<updated>2025-08-28T17:11:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T17:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0dba15c64878a645c9b5bffc1e7eb43d2d900cb4'/>
<id>urn:sha1:0dba15c64878a645c9b5bffc1e7eb43d2d900cb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: multi-cursor: ensure 'len' is initialized</title>
<updated>2025-08-28T13:39:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T13:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=acf62bdda5416b845a4ad06e2bf4a75479e2b3af'/>
<id>urn:sha1:acf62bdda5416b845a4ad06e2bf4a75479e2b3af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: disable debug logging</title>
<updated>2025-08-28T10:58:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:58:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bab4a2158b0da94feb2a81f437a14808685127c4'/>
<id>urn:sha1:bab4a2158b0da94feb2a81f437a14808685127c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: multi-cursor: convert debug logging to actual debug logs</title>
<updated>2025-08-28T10:48:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=410b2c246d8f432f2e67c89bd32811765daa0ea3'/>
<id>urn:sha1:410b2c246d8f432f2e67c89bd32811765daa0ea3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: multi-cursor: implement cursor and color queries</title>
<updated>2025-08-28T10:44:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:44:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e4fcb0cc335ca55a67c57b1e80292b760aba7cc6'/>
<id>urn:sha1:e4fcb0cc335ca55a67c57b1e80292b760aba7cc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: multi-cursor: wip: colors</title>
<updated>2025-08-28T10:18:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:18:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6319ed8b299208f756b3761392be6256282055b7'/>
<id>urn:sha1:6319ed8b299208f756b3761392be6256282055b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: multi-cursor: use enum values in switch</title>
<updated>2025-08-28T10:17:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:17:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=89d87f2c1bfa9419594a68a192d72633de6849bf'/>
<id>urn:sha1:89d87f2c1bfa9419594a68a192d72633de6849bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: cursor blink: dirty multi-cursor cells too</title>
<updated>2025-08-28T10:11:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T10:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7996267d7bb095466d8f892a5df0b3de0de3f480'/>
<id>urn:sha1:7996267d7bb095466d8f892a5df0b3de0de3f480</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: multi-cell: decrement 'extra-cursor' pointer instead of indexing</title>
<updated>2025-08-28T05:34:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T05:34:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dcabe14392a01fe97836fa5c6fb059c4b83124d3'/>
<id>urn:sha1:dcabe14392a01fe97836fa5c6fb059c4b83124d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>multi-cursor: render: wip</title>
<updated>2025-08-28T05:30:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-28T05:30:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=64f52190ed0bad915d2df62f8b252ab0f3547467'/>
<id>urn:sha1:64f52190ed0bad915d2df62f8b252ab0f3547467</id>
<content type='text'>
Shapes and most color options implemented
</content>
</entry>
<entry>
<title>multi-cursor: render: wip</title>
<updated>2025-08-27T15:08:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-08-27T15:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44bc72075520d7c420a000f25b40a2e6775cbc6d'/>
<id>urn:sha1:44bc72075520d7c420a000f25b40a2e6775cbc6d</id>
<content type='text'>
</content>
</entry>
</feed>
