<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/config.c, branch 1.10.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-11-14T15:16:32Z</updated>
<entry>
<title>user-notification: config: various small cleanups</title>
<updated>2021-11-14T15:16:32Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-11-14T15:08:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=759bc8007b2834bdfa7497f8d34ae2e30dd8064b'/>
<id>urn:sha1:759bc8007b2834bdfa7497f8d34ae2e30dd8064b</id>
<content type='text'>
* Rename user_notification_add() to user_notification_add_fmt()
* Add new user_notification_add() helper function
* Use xvasprintf() to replace user_notification_add_va()
* Make better use of helper functions in config.c
</content>
</entry>
<entry>
<title>config: remove options that were deprecated in 1.8.x</title>
<updated>2021-11-14T13:21:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-14T13:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0686f94b183033e5692577c4c474299e0010e566'/>
<id>urn:sha1:0686f94b183033e5692577c4c474299e0010e566</id>
<content type='text'>
* [main].bell
* [main].jump-label-letters
* [main].url-launch
* [main].osc8-underline
</content>
</entry>
<entry>
<title>config: add [colors].dim0-7</title>
<updated>2021-11-13T16:39:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-03T13:25:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c01904a2c75e962e5159dd42a640cce3d7370b13'/>
<id>urn:sha1:c01904a2c75e962e5159dd42a640cce3d7370b13</id>
<content type='text'>
This allows you to configure custom colors to be used when colors are
being dimmed (`\E[2m`).

It is implemented by color matching (just like
bold-text-in-bright=palette-based); the color-to-be-dimmed is matched
against the current color palette.

If it matches one of the regular colors (colors 0-7), the
corresponding “dim” color will be used.

If it matches one of the bright colors (colors 8-15), the
corresponding “regular” color will be used (but *only* if the “dim”
color has been set).

Otherwise, the color is dimmed by reducing its luminance.

The default behavior, i.e. when dim0-7 hasn’t been configured, is to
dim by reducing luminance for *all* colors. I.e. we don’t do any color
matching at all. In particular, this means that dimming a bright color
will *not* result in the corresponding “regular” color.

Closes #776
</content>
</entry>
<entry>
<title>config: scrollback.indicator.text: use value_to_wchars()</title>
<updated>2021-11-13T11:40:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-13T11:40:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c0e67e7c2fd8028ddabd164a0eb2938c03d6c6f1'/>
<id>urn:sha1:c0e67e7c2fd8028ddabd164a0eb2938c03d6c6f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: value_to_wchars(): free the target variable</title>
<updated>2021-11-13T10:04:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T19:32:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=73c5754f5d4c7d6588a4acf635723e69eac7bf76'/>
<id>urn:sha1:73c5754f5d4c7d6588a4acf635723e69eac7bf76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: appease compiler</title>
<updated>2021-11-13T10:04:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T13:22:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2f0ab1da89de0a9db47b41863ddd822216707726'/>
<id>urn:sha1:2f0ab1da89de0a9db47b41863ddd822216707726</id>
<content type='text'>
../../foot/config.c:154:50: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
    log_msg(log_class, LOG_MODULE, file, lineno, formatted_msg);
                                                 ^~~~~~~~~~~~~
../../foot/config.c:154:50: note: treat the string as an argument to avoid this
    log_msg(log_class, LOG_MODULE, file, lineno, formatted_msg)
</content>
</entry>
<entry>
<title>config: drop all warning logs from the tweak section</title>
<updated>2021-11-13T10:04:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T12:44:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d4b9ef7607fd1f410f9cadbb2456458e214e4834'/>
<id>urn:sha1:d4b9ef7607fd1f410f9cadbb2456458e214e4834</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: value_to_enum(), return conversion success/failure as a bool</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T12:39:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1f39c46c17fa3fab9384b28b304e838b2e30a086'/>
<id>urn:sha1:1f39c46c17fa3fab9384b28b304e838b2e30a086</id>
<content type='text'>
Result is set through a pointer passed as an argument. Note that we
assume enums are 32-bit, and explicitly cast them to int*.

Static asserts have been added to ensure this invariant holds.
</content>
</entry>
<entry>
<title>config: parse_section_main(): explicit return from each branch</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T11:43:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=205f1f7c02672b9ce7dafa4a9a77eff25de868b5'/>
<id>urn:sha1:205f1f7c02672b9ce7dafa4a9a77eff25de868b5</id>
<content type='text'>
Add UNREACHABLE() at the bottom
</content>
</entry>
<entry>
<title>config: add value_to_dimensions()</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T11:32:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0c0a78498f4207ca9816cd41c5badaf516230072'/>
<id>urn:sha1:0c0a78498f4207ca9816cd41c5badaf516230072</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add {str,value}_to_uint{16,32}()</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T11:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d29c3cf7b76c6a1935684124b4d7cad69de94c78'/>
<id>urn:sha1:d29c3cf7b76c6a1935684124b4d7cad69de94c78</id>
<content type='text'>
This allows us to pass the final pointer directly to the conversion
functions, as well as allowing us to print outside-range errors.
</content>
</entry>
<entry>
<title>config: add value_to_str()</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T10:32:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3b27a665da60837a455ca0b39e99625ad85ade75'/>
<id>urn:sha1:3b27a665da60837a455ca0b39e99625ad85ade75</id>
<content type='text'>
Takes a pointer to a char*, free:s it, and strdups the current value.
</content>
</entry>
<entry>
<title>config: value_to_bool: return success/fail</title>
<updated>2021-11-13T10:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-06T10:25:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c2127fb2de37fe19cd7953327c50aaea66f830bf'/>
<id>urn:sha1:c2127fb2de37fe19cd7953327c50aaea66f830bf</id>
<content type='text'>
Write boolean value to a pointer passed as argument, return conversion
success/failure
</content>
</entry>
<entry>
<title>config: add value_to_enum()</title>
<updated>2021-11-13T10:04:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T17:11:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=57c7fb33af86754b5a15afa5786c3fdc702859cd'/>
<id>urn:sha1:57c7fb33af86754b5a15afa5786c3fdc702859cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: let value_to_double() log errors</title>
<updated>2021-11-13T10:04:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T16:20:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=328b53b166b59d2fb5258f464dd45745d6df8011'/>
<id>urn:sha1:328b53b166b59d2fb5258f464dd45745d6df8011</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: let value_to_ulong() log errors</title>
<updated>2021-11-13T10:04:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T16:18:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=def2d80b0a334b65537c50b3c962de115c01fb32'/>
<id>urn:sha1:def2d80b0a334b65537c50b3c962de115c01fb32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add LOG_CONTEXTUAL_{ERR,WARN,ERRNO}</title>
<updated>2021-11-13T10:04:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T16:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=176b85cb10a6cafe9376e5bfa99206a3a9feacad'/>
<id>urn:sha1:176b85cb10a6cafe9376e5bfa99206a3a9feacad</id>
<content type='text'>
These work like LOG_AND_NOTIFY_* but add contextual information: path
of the conf file, line number, section name, key/option name and the
value.
</content>
</entry>
<entry>
<title>config: first argument to log_and_notify() is now a ‘struct context’</title>
<updated>2021-11-13T10:04:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T13:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=534e9d8befd8d6a38909ad7354c8ec7c63cf6fc3'/>
<id>urn:sha1:534e9d8befd8d6a38909ad7354c8ec7c63cf6fc3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: rename str_to_spawn_template() -&gt; value_to_spawn_template()</title>
<updated>2021-11-13T10:04:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T13:19:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=958ef9dd3bb0ddf3af25a786bd5076a53640c75b'/>
<id>urn:sha1:958ef9dd3bb0ddf3af25a786bd5076a53640c75b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: rename str_to_fonts() -&gt; value_to_fonts()</title>
<updated>2021-11-13T10:04:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-05T13:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=70aec2068a89c46263e81ced7b06c5d9e169e1ba'/>
<id>urn:sha1:70aec2068a89c46263e81ced7b06c5d9e169e1ba</id>
<content type='text'>
</content>
</entry>
</feed>
