<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git, branch v10.6.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v10.6.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v10.6.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-09-08T00:03:52Z</updated>
<entry>
<title>Make 10.6.0 release</title>
<updated>2018-09-08T00:03:52Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-08T00:03:52Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=9b87ad921b5d95cbc002714d1ce4b98249811856'/>
<id>urn:sha1:9b87ad921b5d95cbc002714d1ce4b98249811856</id>
<content type='text'>
New features:

 - Commit ac8d152 ("menuconfig: Add support for custom color schemes
   (aka styles)"), contributed by Mitja Horvat (pinkfluid), adds support
   for configuring the style (colors and attributes) of menuconfig
   interface elements by setting a new MENUCONFIG_STYLE environment
   variable.

   The format of MENUCONFIG_STYLE is documented in the menuconfig.py
   module docstring. This format is now used internally as well to
   define the predefined styles.

 - Commit a092257 ("Allow macro expansion within symbol names") adds
   support for expanding macros within symbol names. This could be used
   e.g. to define template Kconfig files that get instantiated by
   setting preprocessor variables before including them.

Other changes:

 - Commit 6683213 ("Allow user values on 'option env' symbols") makes it
   possible to give 'option env' symbols user values. There's no good
   reason to disallow it (it's a leftover from an older way of
   implementing them), and it simplifies the code a bit.

   Note that 'option env' symbols are only supported for backwards
   compatibility at this point. Environment variables can be expanded
   directly.
</content>
</entry>
<entry>
<title>menuconfig: Pass a style string to _styled_win()</title>
<updated>2018-09-07T23:57:59Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-07T23:55:10Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=2a1acdd37cdcd8590e0d1f3eccc314bdd501a443'/>
<id>urn:sha1:2a1acdd37cdcd8590e0d1f3eccc314bdd501a443</id>
<content type='text'>
Enforces that all windows are created from styles defined via the new
styling mechanism.
</content>
</entry>
<entry>
<title>menuconfig: Print warnings instead of having StyleError</title>
<updated>2018-09-07T23:38:24Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-07T23:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=4e25d1c713b0c37feb6a8781a92b62a52ee5eb04'/>
<id>urn:sha1:4e25d1c713b0c37feb6a8781a92b62a52ee5eb04</id>
<content type='text'>
Mostly motivated by curses.COLORS, which depends on the terminal.

It's probably friendlier to run even if the style gets a bit messed up,
but it's also nice to point out problems.

Missing style templates and missing styles to the left of '=' are
pointed out now too, with the help of some flag hackery.

Prefix the warnings with 'menuconfig warning:' to make it easier to
distinguish them from warnings from Kconfiglib.
</content>
</entry>
<entry>
<title>menuconfig: Ignore non-existent style templates</title>
<updated>2018-09-07T22:00:16Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-07T21:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1f16f10dab298a121f8ff709312f694dc4b86354'/>
<id>urn:sha1:1f16f10dab298a121f8ff709312f694dc4b86354</id>
<content type='text'>
This is consistent with non-existent styles being ignored, and gives
some forwards/backwards compatibility.

I wonder if there should be a warning for both instead.

Piggyback some nits.
</content>
</entry>
<entry>
<title>menuconfig: Fix off-by-one in range check for COLORS</title>
<updated>2018-09-07T21:40:10Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-07T21:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=df04a0c8fb020773e4708d00ee061e8f7a0501b9'/>
<id>urn:sha1:df04a0c8fb020773e4708d00ee061e8f7a0501b9</id>
<content type='text'>
"color values are expected to be in the range 0 to COLORS-1", from
init_color(3ncurses).
</content>
</entry>
<entry>
<title>menuconfig: Allow numbers to be used directly for colors</title>
<updated>2018-09-07T21:24:40Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-07T19:38:58Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0bb65bc5628c7493897bf2f8cc786bcbbbcdefe5'/>
<id>urn:sha1:0bb65bc5628c7493897bf2f8cc786bcbbbcdefe5</id>
<content type='text'>
Make the syntax 'fg:123' instead of 'fg:color123'. This is a bit easier
to type. Hex and octal constants are accepted as well.
</content>
</entry>
<entry>
<title>menuconfig: Add support for custom color schemes (aka styles)</title>
<updated>2018-09-07T19:11:43Z</updated>
<author>
<name>Mitja HORVAT</name>
<email>pinkfluid@gmail.com</email>
</author>
<published>2018-08-29T20:53:49Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ac8d152ec81a82ebacb0e77c3aa6f0cd81638f80'/>
<id>urn:sha1:ac8d152ec81a82ebacb0e77c3aa6f0cd81638f80</id>
<content type='text'>
- introduce the _parse_styles() function which can take a string
    defintion and parse it into a color structure that can be used
    by UI elements

- the _parse_styles() function modifies a global dictionary (_style)
    which is subsequentially used to style the UI elements

- the _style_to_curses() function takes a string representation
    of style colors and converts it to ncurses attributes.
    For eaxmple: fg:brightred,bg:black,bold -&gt; returns a color
    pair representing brightred and black ORed with A_BOLD

- simplify _init_styles() as now the majority of the heavy lifting
    is done by _parse_styles(). _init_styles() initializes the
    default theme (either "defualt" or "monochrome")

- terminals without color capabilities are now handled by using
    the "monochrome" theme. This theme doesn't use any colors
    but rather just bold and standout attribtes.

- add support for the "underline" attribute

- add doctstring at the beginning describing the style syntax

- rename the _style() function to _style_attr() as it was conflicting
    with the global _style dictionary

- introduce the StyleError exception; this one is thrown if an error
    in the style syntax is encountered
</content>
</entry>
<entry>
<title>Clean up _expand_name() comments</title>
<updated>2018-09-05T10:19:39Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-05T10:18:26Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=2be02fac785272e3bcea2cef619954535dc9abe0'/>
<id>urn:sha1:2be02fac785272e3bcea2cef619954535dc9abe0</id>
<content type='text'>
Some grammar, some copy-paste errors ('string' should be 'name').
</content>
</entry>
<entry>
<title>Fix outdated comment re. $() yielding non-const symbols</title>
<updated>2018-09-04T19:35:16Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-04T19:35:16Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0591946c28107001f4c5ca725405b8c2270be0dd'/>
<id>urn:sha1:0591946c28107001f4c5ca725405b8c2270be0dd</id>
<content type='text'>
This is handled earlier in _tokenize() now.
</content>
</entry>
<entry>
<title>Allow macro expansion within symbol names</title>
<updated>2018-09-04T18:49:21Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-04T16:05:28Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=a092257a49ed7850913cf53e474f4c8dd175c94b'/>
<id>urn:sha1:a092257a49ed7850913cf53e474f4c8dd175c94b</id>
<content type='text'>
The C implementation supports this (though it's undocumented, and unused
to far).

This can be used e.g. to dynamically instatiate symbols from template
files:

Kconfig.template:

    config $(subsys)_LOG
	bool "Enable logging for $(subsys)"
	depends on $(subsys)_HAS_LOG

    ... other stuff dependent on $(subsys)

Elsewhere:

    subsys = FOO
    source "Kconfig.template"

    subsys = BAR
    source "Kconfig.template"

Pretty sure this can easily be abused, but it should be supported at
least.
</content>
</entry>
</feed>
