<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/config.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>config: s/of the form/on the form/</title>
<updated>2022-02-05T15:59:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-05T15:59:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=343f2c51a4cc44aa5ae3a813ae1c908b2f01b9f5'/>
<id>urn:sha1:343f2c51a4cc44aa5ae3a813ae1c908b2f01b9f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: use getline idiomatically</title>
<updated>2022-02-05T08:18:08Z</updated>
<author>
<name>Pranjal Kole</name>
<email>pranjal.kole7@gmail.com</email>
</author>
<published>2022-02-04T13:00:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=06fdebbbcbc47562e4703a9c9ac3c2c16bb545c5'/>
<id>urn:sha1:06fdebbbcbc47562e4703a9c9ac3c2c16bb545c5</id>
<content type='text'>
getline(3) contains an example program at the end, showing its usage.

A few other changes have also been made.
</content>
</entry>
<entry>
<title>config: don't pass null strings to *printf()</title>
<updated>2022-02-05T06:20:41Z</updated>
<author>
<name>Pranjal Kole</name>
<email>pranjal.kole7@gmail.com</email>
</author>
<published>2022-01-29T17:40:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=65b5469e86dc57969cac2109ce5bd53a88164b08'/>
<id>urn:sha1:65b5469e86dc57969cac2109ce5bd53a88164b08</id>
<content type='text'>
musl and glibc's *printf() convert NULL strings to "(null)" [0][1], but
this is undefined behaviour.

context.value has to be set to two backspaces, so that the extra colon
is removed. context.key is set to one backspace, so that the extra dot
is removed. context.section is now set to "main" by default, so it is
never NULL.

[0]: https://git.musl-libc.org/cgit/musl/tree/src/stdio/vfprintf.c#n593
[1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/vfprintf-internal.c;hb=HEAD#l1011
</content>
</entry>
<entry>
<title>config: support Copy and Paste keycodes by default</title>
<updated>2022-01-25T20:27:58Z</updated>
<author>
<name>Mark Stosberg</name>
<email>mark@rideamigos.com</email>
</author>
<published>2022-01-17T18:57:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d76bb0f3249c27111f921379d20ddbc408927e4'/>
<id>urn:sha1:6d76bb0f3249c27111f921379d20ddbc408927e4</id>
<content type='text'>
These work as expected and don't interfere with anything else.

They are useful on the increasing number of keyboards with custom
firmware. The keycodes enable using the same key combination
for terminals as other apps.

For example: by holding down a layer-switching key with a thumb, the
Copy and Paste key codes can be assigned to the C and V keys on a secondary
layer, making for a natural universal copy/paste key combination.
</content>
</entry>
<entry>
<title>config: convert tweak.render_timer to an enum</title>
<updated>2022-01-13T11:08:20Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-13T11:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=891fce62364704b7fc05bfe723a3619297b5b9e0'/>
<id>urn:sha1:891fce62364704b7fc05bfe723a3619297b5b9e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add irc:// to default URL schemes</title>
<updated>2021-12-27T11:10:44Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-12-27T11:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3f34ec74701d9ae433ae032a1891b10b50870cdb'/>
<id>urn:sha1:3f34ec74701d9ae433ae032a1891b10b50870cdb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: update most parse_section_*() functions to return in each if-branch</title>
<updated>2021-12-25T22:51:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-25T22:51:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a3dc0d287d937ec7a4dcf1a66a413df347115fe1'/>
<id>urn:sha1:a3dc0d287d937ec7a4dcf1a66a413df347115fe1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: scrollback: add missing return for ‘lines’</title>
<updated>2021-12-25T22:48:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-25T22:48:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8771bb20bf35bab7cd94f408b44dcee7a8d479d2'/>
<id>urn:sha1:8771bb20bf35bab7cd94f408b44dcee7a8d479d2</id>
<content type='text'>
The missing return meant failures were not reported correctly.
</content>
</entry>
<entry>
<title>config: csd.border_width now always reflects the full/total width</title>
<updated>2021-12-22T19:21:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-22T19:21:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=521bd84a99ee154af2866511774c1f6c8c2a2467'/>
<id>urn:sha1:521bd84a99ee154af2866511774c1f6c8c2a2467</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: error out on empty key- or mouse binding</title>
<updated>2021-12-18T19:39:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-18T19:39:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c076f03dc49335a72e78c3b8a31f58edba1e5857'/>
<id>urn:sha1:c076f03dc49335a72e78c3b8a31f58edba1e5857</id>
<content type='text'>
Closes #851
</content>
</entry>
<entry>
<title>config: NOINLINE modifiers_to_str()</title>
<updated>2021-12-11T19:59:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-11T19:59:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6911a50df7cf18fd49969fde11525a702111a545'/>
<id>urn:sha1:6911a50df7cf18fd49969fde11525a702111a545</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: resolve collisions: argv_compare() returns -1,0,+1, not a bool</title>
<updated>2021-12-11T19:19:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-11T19:00:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a02ba77a1d021e3af7d4e386db8e2e8c2569943'/>
<id>urn:sha1:2a02ba77a1d021e3af7d4e386db8e2e8c2569943</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: resolve collisions: return ‘false’ on failure</title>
<updated>2021-12-11T19:19:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-11T19:00:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=17250ec39303755954ea8cafc5c1e93ba89e74dc'/>
<id>urn:sha1:17250ec39303755954ea8cafc5c1e93ba89e74dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: use “(default)” as path in log message, if path is NULL</title>
<updated>2021-12-11T19:19:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-06T20:20:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6fa09d24e50132b65d1781ff085de8cffcc742df'/>
<id>urn:sha1:6fa09d24e50132b65d1781ff085de8cffcc742df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: remove unneeded function prototype</title>
<updated>2021-12-11T19:19:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-06T20:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3512a7febf16c2cc6db25f81fc26c51b17d56c20'/>
<id>urn:sha1:3512a7febf16c2cc6db25f81fc26c51b17d56c20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: unify key- and mouse bindings</title>
<updated>2021-12-11T19:19:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-06T20:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f6a591b80a820ae5ab6886eb9ba43c90986f302b'/>
<id>urn:sha1:f6a591b80a820ae5ab6886eb9ba43c90986f302b</id>
<content type='text'>
With this patch, key- and mouse-bindings structs (the non-layout
specific ones) are unified into a single struct.

The logic that parses, and manages, the key- and mouse binding lists
are almost identical. The *only* difference between a key- and a mouse
binding is that key bindings have an XKB symbol, and mouse bindings a
button and click-count.

The new, unified, struct uses a union around these, and all functions
that need to know which members to use/operate on now takes a ‘type’
parameter.
</content>
</entry>
<entry>
<title>config: do mouse binding collision detection after loading the conf</title>
<updated>2021-12-11T19:19:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-05T15:30:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4c50c44cf768238486f80fc5daa70d47688902a1'/>
<id>urn:sha1:4c50c44cf768238486f80fc5daa70d47688902a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: value_to_key_combos(): reset modifiers in binding</title>
<updated>2021-12-11T19:19:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-05T14:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb4b4ae43d64e9d51e01cfd5c983684ec1bfe381'/>
<id>urn:sha1:bb4b4ae43d64e9d51e01cfd5c983684ec1bfe381</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: do key binding collision detection after loading the conf</title>
<updated>2021-12-11T19:19:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-05T14:19:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=197c1c5ced20f5783f2359a10d7096f0e1a438d2'/>
<id>urn:sha1:197c1c5ced20f5783f2359a10d7096f0e1a438d2</id>
<content type='text'>
This allows the user to write, to swap two key bindings:

  [key-bindings]
  show-urls-launch=Control+Shift+r
  search-start=Control+Shift+u

instead of:

  [key-bindings]
  search-start=none
  show-urls-launch=Control+Shift+r
  search-start=Control+Shift+u

This should simplify the configuration for people who replace a lot of
the default key bindings.

This also simplifies the parsing somewhat, since we no longer has to
parse a key-binding into a temporary list, ensure it doesn’t have any
collisions, and then copy it into the actual key binding list.

_While_ parsing a key-binding, we still need a temporary array (at
least for the time being), but that temporary array is no longer
visible outside the parsing function that allocates it.
</content>
</entry>
</feed>
