Repository navigation
Conversation
menuconfig now uses rawterm, a pure-Python terminal module that provides direct terminal control via termios (Unix) and Win32 console API (Windows), eliminating the curses/windows-curses dependency entirely. Key changes: - Add rawterm.py: pure-Python terminal I/O (Color, Style, Region, Terminal, Key, Box) with three Windows input paths (VT100, ReadConsoleInputW, MSYS2/mintty PTY) - Rewrite menuconfig.py to use rawterm API instead of curses - Fix RTEE border style mismatch in separator lines - Normalize CR to LF in rawterm input (all three paths) so Enter works consistently across Unix and Windows - Fix Color.__repr__ for named colors (Color.RED not Color.index(1)) - Fix escape sequence dead-end input loss via _pending_key buffer - Add rawterm to setup.py py_modules for pip install - Add .ci/validate-rawterm.py for CI validation with Windows console probing via ctypes - Update CI workflow: split validation into Unix/Windows steps with cmd shell on Windows for real console handles - Update README.md, kconfiglib.py, setup.py to remove curses refs
|
Works on Windows 11 Home (Build 26100.7623) using cmd.exe. No UI regressions or rendering issues found. PowerShell with Windows Terminal Works as Expected.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


'menuconfig' now uses a pure-Python terminal module that provides direct terminal control via termios (Unix) and Win32 console API (Windows), eliminating the curses/windows-curses dependency entirely.
Summary by cubic
Replaced curses with a pure-Python terminal I/O layer for menuconfig, removing the windows-curses dependency and unifying behavior across Unix and Windows. Adds cross-platform CI validation and improves input handling reliability.
New Features
Bug Fixes
Written for commit 56894d8. Summary will update on new commits.