<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/meson.build, 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:20:27Z</updated>
<entry>
<title>meson: bump version to 1.11.0</title>
<updated>2022-02-05T16:20:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-05T16:20:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3fea7829fa1be5dc8b61b89453dfa687bd8ea672'/>
<id>urn:sha1:3fea7829fa1be5dc8b61b89453dfa687bd8ea672</id>
<content type='text'>
</content>
</entry>
<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>meson: fix race build order of builtin terminfo</title>
<updated>2022-01-15T16:15:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-15T16:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=379e68916e891bb3cf0a632692ae4312cde525c5'/>
<id>urn:sha1:379e68916e891bb3cf0a632692ae4312cde525c5</id>
<content type='text'>
The builtin terminfo is used by dcs.c, which is built as part of the
static library ‘vtlib’. Thus, vtlib needs to depend on the
builtin_terminfo target.
</content>
</entry>
<entry>
<title>script: add generate-builtin-terminfo.py</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-02T10:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b'/>
<id>urn:sha1:b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b</id>
<content type='text'>
This script parses a terminfo source file and generates a C header
file with a static struct containing terminfo names and their values.

The table is sorted on the capability names
</content>
</entry>
<entry>
<title>meson: generate-version: use CURRENT_SOURCE_DIR instead of SOURCE_ROOT</title>
<updated>2021-12-21T12:40:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-21T12:40:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9df537a110d2953225539ab9a096a2b9a33a062e'/>
<id>urn:sha1:9df537a110d2953225539ab9a096a2b9a33a062e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: initial external unit test suite for ‘config.c’</title>
<updated>2021-12-11T17:52:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-27T16:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e1c3bdc6f2658e5c0f3bf128000f3dc1dc7f88bb'/>
<id>urn:sha1:e1c3bdc6f2658e5c0f3bf128000f3dc1dc7f88bb</id>
<content type='text'>
This patch adds a separate (external) test binary with unit tests for
config.c

This is achieved by having the test’s source file include
config.c (yes, the C file, not the header file).

This allows us to call e.g. parse_section_*() directly, without having
to go through config_load() (which requires having a readable file at
“path”).
</content>
</entry>
<entry>
<title>meson: bump version to 1.10.3</title>
<updated>2021-12-08T17:09:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-08T17:09:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9026f16a78971328bb1d5f2c19d05e9d0eb362b'/>
<id>urn:sha1:a9026f16a78971328bb1d5f2c19d05e9d0eb362b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: bump version to 1.10.2</title>
<updated>2021-12-02T19:26:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-02T19:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=46994a3e255ef3e9620b7a85220c200fcb6caa0d'/>
<id>urn:sha1:46994a3e255ef3e9620b7a85220c200fcb6caa0d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: bump version to 1.10.1</title>
<updated>2021-11-22T21:01:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-22T21:01:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5eded7292c5560cf021a5a77699df5717b445304'/>
<id>urn:sha1:5eded7292c5560cf021a5a77699df5717b445304</id>
<content type='text'>
</content>
</entry>
<entry>
<title>footclient.desktop: new XDG desktop file, for footclient</title>
<updated>2021-11-15T11:14:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-15T11:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=843ba49565672af75627e46b0958a9209142c2e6'/>
<id>urn:sha1:843ba49565672af75627e46b0958a9209142c2e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: add -Dthemes=false|true</title>
<updated>2021-11-14T22:12:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-14T22:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=31966f5494ed82268c414b04b63b20e88d4fff16'/>
<id>urn:sha1:31966f5494ed82268c414b04b63b20e88d4fff16</id>
<content type='text'>
This adds a new meson option that controls whether the example theme
files should be installed or not. The default is true.

Previously, themes were gated by the -Ddocs option.
</content>
</entry>
<entry>
<title>meson: bump version to 1.10.0</title>
<updated>2021-11-14T17:12:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-14T17:12:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=589404b32e908af038673e95b697c41e88cd62a0'/>
<id>urn:sha1:589404b32e908af038673e95b697c41e88cd62a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: install themes to $datadir/foot/themes</title>
<updated>2021-10-27T15:31:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-27T15:31:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eebec8e38d3b05d5656760ac83e9a7a02312bfb8'/>
<id>urn:sha1:eebec8e38d3b05d5656760ac83e9a7a02312bfb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: use STRLEN() macro to make parse_rgb() more self-documenting</title>
<updated>2021-10-20T16:05:36Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-10-20T16:05:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e878892792e36f47a8ed5caea7bd56c75c1c626'/>
<id>urn:sha1:2e878892792e36f47a8ed5caea7bd56c75c1c626</id>
<content type='text'>
The empty literals in the macro are to ensure the argument itself
is a string literal, so it can't be used on anything else.
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.9.2</title>
<updated>2021-10-02T12:47:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-02T12:47:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af3f48996702aa2c8422fed9bdca0d671d98c7e9'/>
<id>urn:sha1:af3f48996702aa2c8422fed9bdca0d671d98c7e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.9.1</title>
<updated>2021-10-01T18:52:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-01T18:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c1f18360c2b4cd4bc13bdb14d47f5db0efb61ffd'/>
<id>urn:sha1:c1f18360c2b4cd4bc13bdb14d47f5db0efb61ffd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: terminfo install location now defaults to $datadir/terminfo</title>
<updated>2021-08-30T17:09:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-29T09:06:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9434066546a8409117083bd64ad43f97a3a236e2'/>
<id>urn:sha1:9434066546a8409117083bd64ad43f97a3a236e2</id>
<content type='text'>
The meson command line option -Dcustom-terminfo-install-location has
been changed in the following ways:

* If unset, $datadir/terminfo is used, and TERMINFO is *not* exported
* If set, that value (relative to $prefix) is used, and TERMINFO *is*
exported.
* The special value ‘no’ is removed.

-Ddefault-terminfo now also changes the terminfo names generated when
-Dterminfo=enabled.

Furthermore, the documentation for the TERMINFO environment variable
has been removed from the foot.1 and footclient.1 man pages (but as
mentioned above, foot *will* still set it if
-Dcustom-terminfo-install-location has been used).

INSTALL.md has been updated to now recommend using ncurses’ terminfo
definitions, if available. But also to document the other
alternatives; installing the terminfo definitions in a custom
location, or installing them with a diferent name. It also describes
the general problem, and the disadvantages of each alternative (but
without going into too much depth).
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.9.0</title>
<updated>2021-08-27T11:32:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-27T10:46:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fec5f8784b0ae24154ad74aff17e3522d681e4ba'/>
<id>urn:sha1:fec5f8784b0ae24154ad74aff17e3522d681e4ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: run generate_version.sh in a C locale</title>
<updated>2021-08-25T17:12:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-25T17:12:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=88b2808dcd3a01ced02079bf381f204e10b7946b'/>
<id>urn:sha1:88b2808dcd3a01ced02079bf381f204e10b7946b</id>
<content type='text'>
Previously, only the date command inside the script was run with
LC_TIME=C.

But there’s no reason to be that conservative; we absolutely do not
want _anything_ in that script to generate locale dependent output.
</content>
</entry>
<entry>
<title>terminfo: install to $datadir/foot/terminfo by default, append to TERMINFO_DIRS</title>
<updated>2021-08-17T19:04:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-07T14:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=76391868650240b2314a66d182e4d07cf8491f54'/>
<id>urn:sha1:76391868650240b2314a66d182e4d07cf8491f54</id>
<content type='text'>
As of 2021-07-31, ncurses ships its own version of foot’s terminfo.

Since:

* It doesn’t have the non-standard Sync,Tc,setrgbf,setrgbb
  capabilities.
* It doesn’t set hs,fsl,dsl (statusbar).
* We want to be able to update our termminfo without waiting for an
  ncurses release.
* Foot should be installable and usable on Linux systems that doesn’t
  have the latest ncurses.

we still want to ship our own version. We can however not install it
to the default terminfo location (e.g. /usr/share/terminfo), since it
will collide with the ncurses provided files.

Our options are to either rename our terminfo to something else, or to
keep the name, but install our terminfo files somewhere else.

The first option would be the easy one. However, I think it makes
sense to use the same name. For example, a user that SSH’s into a
remote system that does *not* have our own version installed,
but *does* have the ncurses one, will gracefully fall back to that
one, which is better than manually having to set
e.g. TERM=xterm-256color.

Now, if we want to use the same name, we need to install it somewhere
else. But where? And how do we ensure our version is preferred over
the ncurses one?

I opted to $datadir/foot/terminfo (e.g. /usr/share/foot/terminfo) by
default. It makes it namespaced to foot (i.e. we’re not introducing a
new “standard” terminfo location), thus guaranteeing it wont collide
with ncurses.

To enable applications to find it, we export TERMINFO_DIRS. This is a
list of *additional* directories to search for terminfo files. If it’s
already defined, we *append* to it.

The nice thing with this is, if there’s no terminfo in that
location (e.g. when you SSH into a remote), the default terminfo
location is *also* searched. But only *after* having searched through
TERMINFO_DIRS.

In short: our version is preferred, but the ncurses one (or an older
version of our terminfo package!) will be used if ours cannot be
found.

To enable packagers full control over the new behavior, the existing
meson command line options have been modified, and a new option added:

-Dterminfo=disabled|enabled|auto: *build* and *install* the terminfo
files.

-Dcustom-terminfo-install-location=&lt;path&gt;: *where* the terminfo files
are expected to be found.

This *needs* to be set *even* if -Dterminfo=disabled. For example, if
the packaging script builds and packages the terminfo files separate
from the regular foot build. The path is *relative to $prefix*, and
defaults to $datadir/foot/terminfo.

This is the value that will be appended to TERMINFO_DIRS. Note that
you can set it to ‘no’, in which case foot will *not* set/modify
TERMINFO_DIRS. Only do this if you don’t intend to package foot’s
terminfo files at all (i.e. you plan on using the ncurses ones only).

-Ddefault-terminfo=foot. Allows overriding the default TERM
value. This should only be changed if the target platform doesn’t
support terminfo files.

Closes #671
</content>
</entry>
</feed>
