<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/main.c, branch 1.8.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-06-26T21:15:09Z</updated>
<entry>
<title>log: add LOG_CLASS_NONE and use as initializer for log_level</title>
<updated>2021-06-26T21:15:09Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-06-26T21:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5dca0458a09ebc586fda49c50533976f055d8de2'/>
<id>urn:sha1:5dca0458a09ebc586fda49c50533976f055d8de2</id>
<content type='text'>
This means that logging will be completely disabled until log_init()
has been called, which is useful to prevent log spam when running
UNITTEST{} blocks in debug builds.

Note that this doesn't change the default log level at runtime, which
was already being set to LOG_CLASS_INFO in main.c and client.c.

The new log level is also exposed to the command-line interface as
`--log-level=none`, which allows disabling logging entirely.
</content>
</entry>
<entry>
<title>foot: add +/-graphemes to version output</title>
<updated>2021-06-24T15:50:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-24T15:50:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a319ddf094cd015673bb80e8137cbebaeaa2c26e'/>
<id>urn:sha1:a319ddf094cd015673bb80e8137cbebaeaa2c26e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: usage: add ‘=’ between --override and its value</title>
<updated>2021-06-23T13:12:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-23T12:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c6b5ac92997bab13c795543e0fa87d30cc812bc4'/>
<id>urn:sha1:c6b5ac92997bab13c795543e0fa87d30cc812bc4</id>
<content type='text'>
This is how all other long options are documented in the usage.
</content>
</entry>
<entry>
<title>config: don’t use tllist where it isn’t necessary</title>
<updated>2021-06-18T13:35:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-17T16:15:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=495c7304878bdd010dc5d25620dc68f41ac4cd36'/>
<id>urn:sha1:495c7304878bdd010dc5d25620dc68f41ac4cd36</id>
<content type='text'>
tllists are great when dealing with dynamically changing lists. They
are also very easy to use when building lists/arrays where the final
size is unknown.

However, this ease of use comes at a price: code size. tll-macros
expand to a lot of code.

Since things in the config are static, once the config has been
loaded, using tllists for configuration data structures doesn’t make
much sense.

This patch replaces nearly all tllists used by the configuration, with
dynamically allocated arrays.
</content>
</entry>
<entry>
<title>Override options from command line</title>
<updated>2021-06-12T08:05:15Z</updated>
<author>
<name>Ryan Farley</name>
<email>ryan.farley@gmx.com</email>
</author>
<published>2021-06-11T09:40:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f379ffb8ed9bba0dafc2a7c1430ccb1a2517f99c'/>
<id>urn:sha1:f379ffb8ed9bba0dafc2a7c1430ccb1a2517f99c</id>
<content type='text'>
Allow any configuration option to be overridden with -o/--override
'section.key=value' arguments, as suggested in #554

update completitions for override

slight refactoring to ease footclient support
</content>
</entry>
<entry>
<title>main/client: change exit code</title>
<updated>2021-05-04T08:41:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-01T08:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=da923100cad1000252c87b02a4132ce5878a28ec'/>
<id>urn:sha1:da923100cad1000252c87b02a4132ce5878a28ec</id>
<content type='text'>
* foot exits with -26/230
* footclient exits with -36/220

This is to give each application a range of exit codes. Currently
unused, but we may want to change this in the future.
</content>
</entry>
<entry>
<title>foot/footclient: use a custom exit code when foot/footclient fail to run</title>
<updated>2021-05-04T08:40:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-30T20:47:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a1b41bd186147f3f028030e9079821d0bfa7b3f6'/>
<id>urn:sha1:a1b41bd186147f3f028030e9079821d0bfa7b3f6</id>
<content type='text'>
Normally, foot and footclient uses the exit code from the client
application (i.e. the shell).

However, foot (or footclient) itself may fail to run; if run outside
of a Wayland session, or no fonts are installed, or the client
application/shell cannot be found (“foot lsdjfldsjf”) etc.

Up until now, there has been no way to differentiate these kind of
failures from the client application exiting with code 1.

This patch changes foot’s failure exit code to -27/229, and
footclient’s to -28/228. Note that footclient will exit with foot’s
-27/229 if footclient ran successfully, but the foot server failed to
instantiate a new window.

Closes #466.
</content>
</entry>
<entry>
<title>main: explicitly cast log_colorize to enum fcft_log_colorize</title>
<updated>2021-04-17T18:09:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-17T18:09:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=40686303efab82571ea37d0bf901360ed2219795'/>
<id>urn:sha1:40686303efab82571ea37d0bf901360ed2219795</id>
<content type='text'>
Fixes error in Clang builds:

  ../../foot/main.c:376:19: error: implicit conversion from enumeration type 'enum log_colorize' to different enumeration type 'enum fcft_log_colorize' [-Werror,-Wenum-conversion]
      fcft_log_init(log_colorize, as_server &amp;&amp; log_syslog, log_level + 1);
      ~~~~~~~~~~~~~ ^~~~~~~~~~~~
</content>
</entry>
<entry>
<title>main: call fcft_log_init(). Note that this requires fcft &gt;= 2.3.90</title>
<updated>2021-04-17T17:31:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-17T17:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=353c2f012af8fe0b440387ff20f3b0d032a2fd04'/>
<id>urn:sha1:353c2f012af8fe0b440387ff20f3b0d032a2fd04</id>
<content type='text'>
</content>
</entry>
<entry>
<title>features: --version now logs +/-pgo</title>
<updated>2021-03-26T19:30:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-26T19:30:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9b20764f35094963ecbfc40a972ef54443630447'/>
<id>urn:sha1:9b20764f35094963ecbfc40a972ef54443630447</id>
<content type='text'>
That is, whether the binary was compiled with PGO or not.
</content>
</entry>
<entry>
<title>config: reuse HAVE_TERMINFO via DEFAULT_TERM</title>
<updated>2021-02-26T14:15:05Z</updated>
<author>
<name>Chloe Kudryavtsev</name>
<email>toast@toast.cafe</email>
</author>
<published>2021-02-26T21:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=80b95eeb7e66e287a214ca61f765b7da78f2bc2c'/>
<id>urn:sha1:80b95eeb7e66e287a214ca61f765b7da78f2bc2c</id>
<content type='text'>
add detection in --help output
also make it more easily accessible for other locations to change
</content>
</entry>
<entry>
<title>main: initialize pseudo-random generator</title>
<updated>2021-02-21T19:14:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-13T12:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c600e131e28f10767d185855a41a2318292c905b'/>
<id>urn:sha1:c600e131e28f10767d185855a41a2318292c905b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: -D,--working-directory: check path exists and is a directory</title>
<updated>2021-02-13T09:48:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-13T09:48:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f896f12967086cde054d02a0e5b4af1eb8eeb898'/>
<id>urn:sha1:f896f12967086cde054d02a0e5b4af1eb8eeb898</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main/client: add -D,--working-directory=DIR</title>
<updated>2021-02-12T20:42:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T08:39:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=19868c9c8d29cba0f22dafcf9b92ffffc76bd1e7'/>
<id>urn:sha1:19868c9c8d29cba0f22dafcf9b92ffffc76bd1e7</id>
<content type='text'>
This overrides the CWD the slave process chdir()’s into before
exec:ing the client application.
</content>
</entry>
<entry>
<title>main/client: add missing short options to usage (--help output)</title>
<updated>2021-02-12T08:02:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T08:02:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=59b127dc6909399711aef48149f86845b46dbd1f'/>
<id>urn:sha1:59b127dc6909399711aef48149f86845b46dbd1f</id>
<content type='text'>
Initially, these options *did not* have short options. Then, in
e81388336750a20a2da98a57e9726c8ba1b481e3, the short options were added
to footclient’s getopt_long() call.

This was in a sense incorrect. But instead of reverting it, the short
options were made official in
8eaa1959904ecff0e7e75d152220344457912f76, by adding the short options
to foot, documenting them in the man pages, and adding them to the
shell completions.

Though the commit message of 8eaa1959904ecff0e7e75d152220344457912f76
says the options have now been included in usage(), they were in
fact *not* added to usage.

This patch does just that.
</content>
</entry>
<entry>
<title>Merge branch 'log-level'</title>
<updated>2021-02-11T18:00:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-11T18:00:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=da7da4cba51a6444d1fce8fc8767f25cbe38b351'/>
<id>urn:sha1:da7da4cba51a6444d1fce8fc8767f25cbe38b351</id>
<content type='text'>
Closes #337
</content>
</entry>
<entry>
<title>main: monitor SIGINT+SIGTERM using the FDM</title>
<updated>2021-02-11T17:55:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-10T15:21:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7c3a126b22c87431461221446087b5fc0e098426'/>
<id>urn:sha1:7c3a126b22c87431461221446087b5fc0e098426</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: client: factor out some common code for "--log-level" option</title>
<updated>2021-02-11T11:08:18Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-02-11T11:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5437321f97e21a3fc6fca79fbdf05ca8d6199b35'/>
<id>urn:sha1:5437321f97e21a3fc6fca79fbdf05ca8d6199b35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: add -d,--log-level=[debug,info,warning,error]</title>
<updated>2021-02-09T20:22:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-09T20:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ca3974cc24e2eda811d2dc3985ae914c2cf88d6c'/>
<id>urn:sha1:ca3974cc24e2eda811d2dc3985ae914c2cf88d6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: include uname.sysname when logging host architecture</title>
<updated>2021-02-07T09:24:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-07T09:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0d012db3a887d14a5982b4d1bbd1c43a8ac60ccf'/>
<id>urn:sha1:0d012db3a887d14a5982b4d1bbd1c43a8ac60ccf</id>
<content type='text'>
</content>
</entry>
</feed>
