<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.h, branch 1.4.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.4'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-29T04:58:20Z</updated>
<entry>
<title>term: store current font DPI as a float instead of an integer</title>
<updated>2020-07-29T04:58:20Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-26T05:45:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=423bfd388a96e0e04061363773f3059c82d67d0a'/>
<id>urn:sha1:423bfd388a96e0e04061363773f3059c82d67d0a</id>
<content type='text'>
FontConfig's DPI is a double, and using a float instead of an integer
results in higher resolution.
</content>
</entry>
<entry>
<title>Merge branch 'master' into pipe-grid-to-external-tool</title>
<updated>2020-07-16T15:50:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T15:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=47e8c337dc3b3c2cdccf8b2b76dde63f5b32859b'/>
<id>urn:sha1:47e8c337dc3b3c2cdccf8b2b76dde63f5b32859b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: remove unused struct definition 'rgb'</title>
<updated>2020-07-16T09:52:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T09:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e1e52c706ac651239957503d2fc6ebbbb731690d'/>
<id>urn:sha1:e1e52c706ac651239957503d2fc6ebbbb731690d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add term_scrollback_to_text() and term_view_to_text()</title>
<updated>2020-07-15T09:33:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d17423ed184ad0f0343ca62d0b101a7a042941b'/>
<id>urn:sha1:4d17423ed184ad0f0343ca62d0b101a7a042941b</id>
<content type='text'>
These functions extract the current view, or the entire scrollback as
an UTF-8 encoded byte buffer.
</content>
</entry>
<entry>
<title>extract: extract_one: make arguments const</title>
<updated>2020-07-15T09:31:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:31:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2539e3cbb2fed78f446338ecd589eeb505ae9f45'/>
<id>urn:sha1:2539e3cbb2fed78f446338ecd589eeb505ae9f45</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: don't re-render last cursor cell if cursor was hidden</title>
<updated>2020-07-15T06:21:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T06:21:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=970a42a6dd10b6b6227d67e3bc9d7a66ba84f34b'/>
<id>urn:sha1:970a42a6dd10b6b6227d67e3bc9d7a66ba84f34b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: write special value CELL_MULT_COL_SPACER to extra cells</title>
<updated>2020-07-14T14:49:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T14:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=df2927e088ceb2119264d1a970c22a450f00005b'/>
<id>urn:sha1:df2927e088ceb2119264d1a970c22a450f00005b</id>
<content type='text'>
When printing a multi-column character, write CELL_MULT_COL_SPACER
instead of '0' to both padding cells (when character doesn't fit at
the end of the line), and to the cells following the actual character.
</content>
</entry>
<entry>
<title>term: rename COMB_CHARS_LO,HI -&gt; CELL_COMB_CHARS_LO,HI</title>
<updated>2020-07-14T14:41:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T14:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5c99e8013b3e8fb68e55250be550e856636ccf7b'/>
<id>urn:sha1:5c99e8013b3e8fb68e55250be550e856636ccf7b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: rename term_formfeed() -&gt; term_carriage_return()</title>
<updated>2020-07-14T07:29:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T07:29:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b9719673a17618654b09bf9631e0ab65cf0d9def'/>
<id>urn:sha1:b9719673a17618654b09bf9631e0ab65cf0d9def</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: keep lock while pushing dirty rows to worker queue</title>
<updated>2020-07-13T11:27:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-13T11:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=09bdf20aa0a6e29265e5e7b81b941a2b894be3db'/>
<id>urn:sha1:09bdf20aa0a6e29265e5e7b81b941a2b894be3db</id>
<content type='text'>
Instead of locking the queue for each dirty row we append, and
signaling a condition variable, just keep the lock while going through
the visible rows.

Release the lock once done.

Since we take the lock *before* posting the 'start' semaphore, all
workers will be waiting for the lock to be released.

Then, one at a time they'll get the lock and pick a row to
render. The queue will never get empty - when all rows have been
rendered, each worker will pick a 'frame done' "job" from the queue,
and break the rendering loop.
</content>
</entry>
<entry>
<title>render: remove most of the special handling of cursor rendering</title>
<updated>2020-07-12T10:56:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-12T10:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2bdd0a7c80837d7289f73c1247898c8423a2368c'/>
<id>urn:sha1:2bdd0a7c80837d7289f73c1247898c8423a2368c</id>
<content type='text'>
Previously, we had to explicitly render the old cursor cell *before*
applying scrolling damage.

We then rendered all the dirty rows, *without* rendering the cursor -
even if the cursor cell was among the dirty rows.

Finally, when everything else was done, we explicitly rendered the
cursor cell.

This meant a lot of code, and unnecessary render_cell() calls, along
with unnecessary wl_surface_damage_buffer() calls.

This was a necessary in the early design of foot, but not anymore.

We can simply mark both the old cursor cell, and the current one, as
dirty and let the normal rendering framework render it. All we need to
do is pass the cursor column to render_row(), so that it can pass
has_cursor=true in the appropriate call to render_cell(). We pass -1
here for all rows, except the cursor's row, where we pass the actual
cursor column.

With this, there's no need to calculate whether the cursor is visible
or not; just mark it's cell as dirty, and if that row is visible, the
normal rendering will take care of it.

This also simplifies the state needed to be saved between two frames;
we only need a row pointer, and the cursor column index.

Part of https://codeberg.org/dnkl/foot/issues/35
</content>
</entry>
<entry>
<title>term: remove term_has_kbd_focus(), use term-&gt;kbd_focus instead</title>
<updated>2020-07-11T07:06:20Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-11T07:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7d8974f930f915dbe0da2608984af88cc628b216'/>
<id>urn:sha1:7d8974f930f915dbe0da2608984af88cc628b216</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: cache kbd-focused state, just like we cache visual focus state</title>
<updated>2020-07-11T07:04:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-11T07:04:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c72e9434e1b7a24ee19b2bcb414957088ec040e'/>
<id>urn:sha1:8c72e9434e1b7a24ee19b2bcb414957088ec040e</id>
<content type='text'>
There's one difference however, when we receive a kbd unfocus call,
*all* seats must have us unfocused before we actually change the
state.
</content>
</entry>
<entry>
<title>multi-seat: improve handling of multiple (mouse) pointers</title>
<updated>2020-07-09T07:52:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-09T07:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4e48d550efba98ebecf4b60045004e52c585c52d'/>
<id>urn:sha1:4e48d550efba98ebecf4b60045004e52c585c52d</id>
<content type='text'>
* xcursor always set for all pointers
* xcursor sometimes not updated when it should be
* mouse grabbed state wasn't per seat, but global (i.e. "does at least
  one seat enable mouse grabbing")
* selection enabled state wasn't per seat
</content>
</entry>
<entry>
<title>multi-seat: re-enable mouse button+motion reporting support</title>
<updated>2020-07-08T16:16:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:16:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=58415428cf12bd282969e547f65189639ad8351a'/>
<id>urn:sha1:58415428cf12bd282969e547f65189639ad8351a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wip: multi-seat support</title>
<updated>2020-07-08T14:45:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T14:45:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c47082506714f458e999f6ff1bf3099dfc4c0c0c'/>
<id>urn:sha1:c47082506714f458e999f6ff1bf3099dfc4c0c0c</id>
<content type='text'>
Compiles and runs, but mouse, clipboard and other things have been
disabled.
</content>
</entry>
<entry>
<title>term: don't use deprecated fcft_size_adjust()</title>
<updated>2020-07-07T08:44:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-07T08:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69e4213e4a68a969e34dfad1807b49430c8606fb'/>
<id>urn:sha1:69e4213e4a68a969e34dfad1807b49430c8606fb</id>
<content type='text'>
When resizing the font on-the-fly, we now do a complete
font-reload (this is basically what fcft_size_adjust() did anyway).

To get the correct size, we maintain the current size ourselves.

We get the initial size from the user-provided font pattern, by
converting the string to an FcPattern, and using FcPatternGet() to
retrieve both the FC_SIZE and FC_PIXEL_SIZE attributes. These
attributes are then removed from the pattern, and the pattern is
converted back to a string.

The terminal struct maintains a copy of the font sizes. These are
initially set to the sizes from the config.

When the user resizes the font, the terminal-local sizes are
adjusted. To ensure the primary and user-configured fallback fonts are
resizes equally much, convert any pixel sizes to point sizes at this
point.

When the font size is reset, we reload the font sizes from the
config (thus once again returning actual pixel-sizes, if that's what
the user has configured).
</content>
</entry>
<entry>
<title>config: add 'blink' option to cursor section in footrc</title>
<updated>2020-06-30T15:45:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-30T15:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a259eda5358b4fdb788b6fcf0f8e1482a5387d77'/>
<id>urn:sha1:a259eda5358b4fdb788b6fcf0f8e1482a5387d77</id>
<content type='text'>
This option controls whether the default cursor should blink or
not. The default is to *not* blink.
</content>
</entry>
<entry>
<title>sixel: if the client has specified a size, do not change that</title>
<updated>2020-06-11T16:40:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-11T16:40:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dec796f52564687e9e214adfbc6073ec38b2742a'/>
<id>urn:sha1:dec796f52564687e9e214adfbc6073ec38b2742a</id>
<content type='text'>
We used to auto-resize images to always be a multiple of 6.

This is incorrect. The client may, for example, have specified a size
to align the image to a cell boundary, which may not be a multiple of
6.

Furthermore, in e.g. Jexer, which splits up an image into stripes,
that the next image would "overwrite" the previous one. Since the next
image was started on a cell row that the previous image had overflowed
into.
</content>
</entry>
<entry>
<title>vt: initial version of UTF-8 decoding built-in into the VT parser</title>
<updated>2020-06-07T14:16:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-07T14:16:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9452aff0208f62716304022f4496bafbebdf50e9'/>
<id>urn:sha1:9452aff0208f62716304022f4496bafbebdf50e9</id>
<content type='text'>
</content>
</entry>
</feed>
