<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.c, branch 1.11.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.11.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.11.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2022-02-05T16:00:54Z</updated>
<entry>
<title>fcft: adapt to API changes in fcft-3.x</title>
<updated>2022-02-05T16:00:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-21T12:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e0227266cabc015c282774ac898e3f52dce943df'/>
<id>urn:sha1:e0227266cabc015c282774ac898e3f52dce943df</id>
<content type='text'>
Fcft no longer uses wchar_t, but plain uint32_t to represent
codepoints.

Since we do a fair amount of string operations in foot, it still makes
sense to use something that actually _is_ a string (or character),
rather than an array of uint32_t.

For this reason, we switch out all wchar_t usage in foot to
char32_t. We also verify, at compile-time, that char32_t used
UTF-32 (which is what fcft expects).

Unfortunately, there are no string functions for char32_t. To avoid
having to re-implement all wcs*() functions, we add a small wrapper
layer of c32*() functions.

These wrapper functions take char32_t arguments, but then simply call
the corresponding wcs*() function.

For this to work, wcs*() must _also_ be UTF-32 compatible. We can
check for the presence of the  __STDC_ISO_10646__ macro. If set,
wchar_t is at least 4 bytes and its internal representation is UTF-32.

FreeBSD does *not* define this macro, because its internal wchar_t
representation depends on the current locale. It _does_ use UTF-32
_if_ the current locale is UTF-8.

Since foot enforces UTF-8, we simply need to check if __FreeBSD__ is
defined.

Other fcft API changes:

* fcft_glyph_rasterize() -&gt; fcft_codepoint_rasterize()
* font.space_advance has been removed
* ‘tags’ have been removed from fcft_grapheme_rasterize()
* ‘fcft_log_init()’ removed
* ‘fcft_init()’ and ‘fcft_fini()’ must be explicitly called
</content>
</entry>
<entry>
<title>search: remember last searched-for string between searches</title>
<updated>2022-01-29T16:50:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-27T17:36:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=739e7d76b4b70da91c50a53026a83d382dd73bae'/>
<id>urn:sha1:739e7d76b4b70da91c50a53026a83d382dd73bae</id>
<content type='text'>
Regardless of how we exit search mode (commit or cancel), the search
string is remembered.

The next time we enter search mode, the last searched-for string will
be used when searching for the next/prev match (ctrl+r, ctrl+s), and
the search query is empty.
</content>
</entry>
<entry>
<title>replace gettimeofday with clock_gettime</title>
<updated>2022-01-15T16:05:45Z</updated>
<author>
<name>Pranjal Kole</name>
<email>pranjal.kole7@gmail.com</email>
</author>
<published>2022-01-15T09:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0da19a81bc9a94f83bfcf8c5af0e3571f751cf38'/>
<id>urn:sha1:0da19a81bc9a94f83bfcf8c5af0e3571f751cf38</id>
<content type='text'>
POSIX.1-2008 has marked gettimeofday(2) as obsolete, recommending the
use of clock_gettime(2) instead.

CLOCK_MONOTONIC has been used instead of CLOCK_REALTIME because it is
unaffected by manual changes in the system clock. This makes it better
for our purposes, namely, measuring the difference between two points in
time.

tv_sec has been casted to long in most places since POSIX does not
define the actual type of time_t.
</content>
</entry>
<entry>
<title>terminal: use CLOCK_MONOTONIC instead of literal.</title>
<updated>2022-01-14T14:39:27Z</updated>
<author>
<name>Érico Nogueira</name>
<email>erico.erc@gmail.com</email>
</author>
<published>2022-01-14T14:39:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5af65d897cae7eb7dbbdc7e967f3cd1e67552a96'/>
<id>urn:sha1:5af65d897cae7eb7dbbdc7e967f3cd1e67552a96</id>
<content type='text'>
CLOCK_MONOTONIC isn't guaranteed to have the same value on all
platforms, and this makes the code more readable.
</content>
</entry>
<entry>
<title>SGR-Pixels mouse mode, closes #762</title>
<updated>2022-01-01T10:02:30Z</updated>
<author>
<name>Autumn Lamonte</name>
<email>AutumnWalksTheLake@gmail.com</email>
</author>
<published>2021-12-30T11:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d72ba4a062b52a8efed09c0160a985345b9f722f'/>
<id>urn:sha1:d72ba4a062b52a8efed09c0160a985345b9f722f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term_mouse_grabbed(): make ‘seat’ argument const</title>
<updated>2021-12-28T16:10:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-24T14:21:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a835436537098966c817d0d7aafbf01ed43589fa'/>
<id>urn:sha1:a835436537098966c817d0d7aafbf01ed43589fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: erase existing OSC-8 URI</title>
<updated>2021-12-26T13:51:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-26T13:51:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3f10ee87b1ab6f280fae25dfe85c11df34125602'/>
<id>urn:sha1:3f10ee87b1ab6f280fae25dfe85c11df34125602</id>
<content type='text'>
If we have an “active” OSC-8 URI, term_print() would correctly replace
an existing URI with the new one.

But, if we don’t have an active URI, an existing URI was not
erased. This can be reproduced with e.g

  echo -e '\e]8;;http://foo.bar\e\\foobar\e]8;;\e\\\b\b\b\b\b😀\n'
</content>
</entry>
<entry>
<title>term_erase(): replace coord-typed arguments with regular ints</title>
<updated>2021-12-26T11:39:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-25T18:12:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=39bb6be8bfb3700947b21cbd3d466de755368b9b'/>
<id>urn:sha1:39bb6be8bfb3700947b21cbd3d466de755368b9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: font_size_adjust: use DPI=96 when font is *not* scaled by DPI</title>
<updated>2021-12-14T16:45:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-14T16:45:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a098fad004f70a52c2b3163e185d95e8abcf2704'/>
<id>urn:sha1:a098fad004f70a52c2b3163e185d95e8abcf2704</id>
<content type='text'>
Closes #842
</content>
</entry>
<entry>
<title>term: ensure cell dimensions are non-zero</title>
<updated>2021-12-04T17:41:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-04T17:41:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=06c72fc8c335e569584f64754e9965af7d14ec5d'/>
<id>urn:sha1:06c72fc8c335e569584f64754e9965af7d14ec5d</id>
<content type='text'>
Closes #830
</content>
</entry>
<entry>
<title>config, input: allow configuring select-override modifiers</title>
<updated>2021-12-02T23:44:08Z</updated>
<author>
<name>feeptr@codeberg.org</name>
<email>feeptr</email>
</author>
<published>2021-09-27T19:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a4d53bdf88ea112d1d802a6a004a84732297f01b'/>
<id>urn:sha1:a4d53bdf88ea112d1d802a6a004a84732297f01b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: xcursor_update_for_seat(): BUG on xcursor == NULL</title>
<updated>2021-11-30T21:25:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T21:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b3029234af2a0f4ff92947ec6d83581c26e6d3e9'/>
<id>urn:sha1:b3029234af2a0f4ff92947ec6d83581c26e6d3e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: xcursor_update_for_seat(): remove duplicate check for term-&gt;is_searching</title>
<updated>2021-11-30T21:14:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T21:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=59e6285037cba04d0ffdcd77cd27bf8aaa59fe8c'/>
<id>urn:sha1:59e6285037cba04d0ffdcd77cd27bf8aaa59fe8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: xcursor_update_for_seat(): remove switch default case</title>
<updated>2021-11-30T21:12:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T21:12:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bfbb4b08308f6deb872a19c19e8481a907347be4'/>
<id>urn:sha1:bfbb4b08308f6deb872a19c19e8481a907347be4</id>
<content type='text'>
Let the compiler catch missing enum values
</content>
</entry>
<entry>
<title>Merge branch 'window-menu'</title>
<updated>2021-11-30T21:10:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T21:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=90cfdcf1a5ddbaad44a46fb88b8dbafd319ee0ad'/>
<id>urn:sha1:90cfdcf1a5ddbaad44a46fb88b8dbafd319ee0ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>terminal: Make seat xcursor update focus aware</title>
<updated>2021-11-29T15:26:40Z</updated>
<author>
<name>Jonas Ådahl</name>
<email>jadahl@gmail.com</email>
</author>
<published>2021-11-19T14:02:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5c2557b42116dd6d0f86c90b2cf04cd43f80a36e'/>
<id>urn:sha1:5c2557b42116dd6d0f86c90b2cf04cd43f80a36e</id>
<content type='text'>
When term_xcursor_update_for_seat() was called on e.g. keyboard focus
loss, it'd update the curret xcursor to 'text' even if it was e.g. on
top of the window title, or resize areas. This makes the function a bit
more focus aware, and will not be so eager to set the text xcursor.
</content>
</entry>
<entry>
<title>input: rename ‘meta’ to ‘super’</title>
<updated>2021-11-28T14:14:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-21T11:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=66171f104588a280e598ceb38dc90d9acdce060f'/>
<id>urn:sha1:66171f104588a280e598ceb38dc90d9acdce060f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kitty kbd: add flag state, implement push/pop/update/query</title>
<updated>2021-11-28T14:14:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-16T15:32:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fec42e5941c20f4b69164dd0d78ea7e7e0f17de5'/>
<id>urn:sha1:fec42e5941c20f4b69164dd0d78ea7e7e0f17de5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc8: update URI ranges as we print data, *not* when the URI is closed</title>
<updated>2021-11-25T18:31:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-25T18:22:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c50a7afd401686f645fb26676fbcaedb8d4ab62'/>
<id>urn:sha1:8c50a7afd401686f645fb26676fbcaedb8d4ab62</id>
<content type='text'>
At first, an OSC-8 URI range was added when we received the closing
OSC-8 escape (i.e. with an empty URI).

But, this meant that cursor movements while the OSC-8 escape was in
effect wasn’t handled correctly, since we’d add a range that spanned
the cursor movements.

Attempts were made to handle this in the cursor movement functions, by
closing and re-opening the URI.

However, there are too many corner cases to make this a viable
approach. Scrolling is one such example, line-wrapping another.

This patch takes a different approach; emit, or update the URI range
when we print to the grid. This models the intended behavior much more
closely, where an active OSC-8 URI act like any other SGR attribute -
it is applied to all cells printed to, but otherwise have no effect.

To avoid killing performance, this is only done in the “generic”
printer. This means OSC-8 open/close calls must now “switch” the ASCII
printer.

Note that the “fast” printer still needs to *erase* pre-existing OSC-8
URIs.

Closes #816
</content>
</entry>
<entry>
<title>term: print: reset ‘col’ after padding the right margin</title>
<updated>2021-11-21T17:09:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-21T13:47:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5b176dd5d6e55dd666b0e424cae20e7a97e3bede'/>
<id>urn:sha1:5b176dd5d6e55dd666b0e424cae20e7a97e3bede</id>
<content type='text'>
</content>
</entry>
</feed>
