<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/menuconfig.py, branch main</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=main</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2026-02-02T07:22:15Z</updated>
<entry>
<title>drop support for Python 2.x as it is very much EOL</title>
<updated>2026-02-02T07:22:15Z</updated>
<author>
<name>Benjamin Cabé</name>
<email>benjamin@zephyrproject.org</email>
</author>
<published>2025-10-23T15:25:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=24aef157aead07f813f874f43ee471b057e622cb'/>
<id>urn:sha1:24aef157aead07f813f874f43ee471b057e622cb</id>
<content type='text'>
A follow-up to b96a5ad562deffa697d966c29546650aae645f48 where we stopped
having CI run tests on Python 2.x. This actually drops the few remaining
Python 2.x compatibility bits as Python 2.x has EOL'd a long time ago.

Signed-off-by: Benjamin Cabé &lt;benjamin@zephyrproject.org&gt;
Signed-off-by: Torsten Rasmussen &lt;Torsten.Rasmussen@nordicsemi.no&gt;
</content>
</entry>
<entry>
<title>scripts: kconfig: menuconfig: Ignore loc</title>
<updated>2025-11-04T13:38:55Z</updated>
<author>
<name>Yasushi SHOJI</name>
<email>yashi@spacecubics.com</email>
</author>
<published>2025-10-30T17:09:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=6eae2bfd385fd7311aaa0f197f1a5060af5d7693'/>
<id>urn:sha1:6eae2bfd385fd7311aaa0f197f1a5060af5d7693</id>
<content type='text'>
The commit 125d0daaa17aa added 'loc' to the sym.ranges tuples and fixed
kconfiglib.py but menuconfig.py is left untouched. This make menuconfig to
die with:

  Traceback (most recent call last):
    File ".../scripts/kconfig/menuconfig.py", line 3284, in &lt;module&gt;
      _main()
      ~~~~~^^
    File ".../scripts/kconfig/menuconfig.py", line 663, in _main
      menuconfig(standard_kconfig(__doc__))
      ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File ".../scripts/kconfig/menuconfig.py", line 732, in menuconfig
      print(curses.wrapper(_menuconfig))
            ~~~~~~~~~~~~~~^^^^^^^^^^^^^
    File "/usr/lib/python3.13/curses/__init__.py", line 94, in wrapper
      return func(stdscr, *args, **kwds)
    File ".../scripts/kconfig/menuconfig.py", line 872, in _menuconfig
      _change_node(sel_node)
      ~~~~~~~~~~~~^^^^^^^^^^
    File ".../scripts/kconfig/menuconfig.py", line 1586, in _change_node
      s, _range_info(sc))
         ~~~~~~~~~~~^^^^
    File ".../scripts/kconfig/menuconfig.py", line 3119, in _range_info
      for low, high, cond in sym.ranges:
          ^^^^^^^^^^^^^^^
  ValueError: too many values to unpack (expected 3)

This commit ignores the last element in the tuples.

Signed-off-by: Yasushi SHOJI &lt;yashi@spacecubics.com&gt;
</content>
</entry>
<entry>
<title>fix crash caused by unsupported locales</title>
<updated>2025-10-21T18:34:23Z</updated>
<author>
<name>Iksas</name>
<email>iksas@mailbox.org</email>
</author>
<published>2024-08-14T19:24:53Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1e6f6441222b756ec0fce46fe60752473e57bc4a'/>
<id>urn:sha1:1e6f6441222b756ec0fce46fe60752473e57bc4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>menuconfig: check if current menu is visible in parent when leaving</title>
<updated>2025-10-21T18:33:24Z</updated>
<author>
<name>Leandro Lanzieri</name>
<email>leandro.lanzieri@haw-hamburg.de</email>
</author>
<published>2025-10-21T13:41:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0380400353870974eef82c5ffccd2efb39928370'/>
<id>urn:sha1:0380400353870974eef82c5ffccd2efb39928370</id>
<content type='text'>
This handles a case of leaving a menu which is not shown by the parent menu.
This might occur, for instance, when searching for the symbol of a named choice,
which is extended by an invisible symbol somewhere else.
</content>
</entry>
<entry>
<title>scripts: menuconfig: proper handling of NULL character as input</title>
<updated>2025-10-21T12:31:14Z</updated>
<author>
<name>Torsten Rasmussen</name>
<email>Torsten.Rasmussen@nordicsemi.no</email>
</author>
<published>2021-03-15T16:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=407b92b8e35601d1f4a2a2925996bf4d61b2f5cd'/>
<id>urn:sha1:407b92b8e35601d1f4a2a2925996bf4d61b2f5cd</id>
<content type='text'>
Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/33212

Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.

A NULL character may be given accidentally by the user through the
following ways:
- Pressing `Win` key on keyboard (Windows only)
- Pressing `&lt;CTRL&gt;-@` / `&lt;CTRL&gt;-2`.

Signed-off-by: Torsten Rasmussen &lt;Torsten.Rasmussen@nordicsemi.no&gt;
</content>
</entry>
<entry>
<title>Use 'python3' instead of 'python' in hashbangs</title>
<updated>2020-01-24T20:33:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2020-01-24T20:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e'/>
<id>urn:sha1:9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e</id>
<content type='text'>
It's not obligatory for distributions to have a 'python' binary these
days, but 'python3' is likely to be available:
https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors.
Change all hashbangs to point to 'python3'.

This will break running

    $ ./script.py

on *nix systems that don't have a 'python3' executable. Changing it to

    $ python script.py

is pretty painless at least.

This change won't break Python 2 when installing via 'pip', because
entry_points creates bounce scripts with their own hashbangs.

The major version will be increased, in case someone looks at the major
version but doesn't install via 'pip'.

Fixes: #89
</content>
</entry>
<entry>
<title>menuconfig: Work around crash on resize on some macOS systems</title>
<updated>2020-01-12T14:39:13Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2020-01-12T10:03:23Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=68bcecd823d3c98539873389b0734ad3a40803e8'/>
<id>urn:sha1:68bcecd823d3c98539873389b0734ad3a40803e8</id>
<content type='text'>
get_wch() has started raising curses.error when resizing the terminal on
some macOS Python installations. Work around for now by falling back on
getch(), which still works.

See https://github.com/ulfalizer/Kconfiglib/issues/84. Needs more
investigation, but I don't have a Mac handy.

Based on https://github.com/ulfalizer/Kconfiglib/pull/85, but with some
more comments.
</content>
</entry>
<entry>
<title>menuconfig: Remove some double blank lines</title>
<updated>2020-01-12T09:31:11Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2020-01-12T09:29:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=69c955ff618e30f704033038fa467be98af07c90'/>
<id>urn:sha1:69c955ff618e30f704033038fa467be98af07c90</id>
<content type='text'>
Clear enough with the comment style. Shortens things a bit.
</content>
</entry>
<entry>
<title>Put some comments at the end of lines.</title>
<updated>2020-01-12T09:26:41Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-12-22T13:19:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c49bbbbe35e725a75bc6c2fa08ed957ab3f73fcb'/>
<id>urn:sha1:c49bbbbe35e725a75bc6c2fa08ed957ab3f73fcb</id>
<content type='text'>
Shortens things a bit.
</content>
</entry>
<entry>
<title>menuconfig: Improve look and readability of the aquatic theme</title>
<updated>2019-12-19T02:26:58Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-12-19T02:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=456f821dae9266b3a6fa538a017a4a8b2a761dbc'/>
<id>urn:sha1:456f821dae9266b3a6fa538a017a4a8b2a761dbc</id>
<content type='text'>
Cyan-on-blue for the path/help text is hard to read, especially on some
terminals.

Also remove bold, which looks a bit cleaner at a glance.
</content>
</entry>
</feed>
