Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: menuconfig: proper handling of NULL character as input #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tejlmand
Copy link

Fixes: zephyrproject-rtos/zephyr#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 <CTRL>-@ / <CTRL>-2.

Fixes: zephyrproject-rtos/zephyr#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 `<CTRL>-@` / `<CTRL>-2`.

Signed-off-by: Torsten Rasmussen <[email protected]>
@tejlmand
Copy link
Author

Moved from: ulfalizer/Kconfiglib#103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GUI configuration system (ninja menuconfig) exists with an error when the windows key is pressed
1 participant