refactor(tui): drop dependency windows-curses#149
Draft
Conversation
d966d10 to
06a82d1
Compare
38ec3c4 to
709ef1f
Compare
709ef1f to
a573710
Compare
a573710 to
30f1590
Compare
bf0c7c8 to
55b91e8
Compare
55b91e8 to
7492690
Compare
9de1ff4 to
07c4819
Compare
7492690 to
319e88f
Compare
- Add complete terminal handling with screen buffer management - Implement keyboard and mouse input (SGR extended mouse protocol) - Add support for text attributes, colors, and ACS line-drawing characters - Handle wide characters and combining character merging - Support both Windows (msvcrt) and Unix (termios) platforms - Fix ERR constant to match standard curses (-1 instead of 1) - Fix unctrl() return type annotation (str instead of int)
…ified keys Add support for: - SS3 format arrow keys (ESC O A/B/C/D) for application cursor mode - SS3 navigation keys (Home, End, keypad Enter) - Shift+Tab (ESC [ Z -> KEY_BTAB) - Parameterized sequences with modifiers (ESC [ n ; m X) - Shifted key variants (Shift+Arrow, Shift+Delete, etc.) - Windows Shift+Tab (scan code 15) These sequences are sent by terminals in application mode (tmux, screen, vim, etc.) and were previously unrecognized, causing arrow keys and Shift+Tab to not work.
- Rewrite Unix key input to use non-blocking I/O via fcntl - Fix key repeat/hold by reading Python's buffer before select() - Add SIGWINCH handler for window resize detection - Implement cursor APIs: clear, clrtoeol, clrtobot, clearok, timeout - Return KEY_RESIZE on terminal resize events
Use true-color (24-bit) ANSI sequences for colors defined with init_color(). Previously, custom RGB values stored in color_table were ignored during rendering.
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.
Issue Type
Description
Drop dependency
windows-cursesto enable Windows support.Motivation and Context
Drop dependency
windows-cursesto enable Windows support.