Skip to content

Fix: Refactor TUI input handling with zcurses#2

Draft
google-labs-jules[bot] wants to merge 1 commit intomainfrom
fix/tui-bugs
Draft

Fix: Refactor TUI input handling with zcurses#2
google-labs-jules[bot] wants to merge 1 commit intomainfrom
fix/tui-bugs

Conversation

@google-labs-jules
Copy link

Refactored the TUI framework to use the zsh/zcurses module for input handling and terminal control. This resolves issues with keyboard input and stray escape sequences by replacing a fragile manual implementation with a robust, library-driven approach.


PR created automatically by Jules for task 2304086198006599886 started by @Nsomnia

Refactored the TUI framework to use the zsh/zcurses module for input handling and terminal control. This resolves issues with keyboard input and stray escape sequences by replacing a fragile manual implementation with a robust, library-driven approach.

- Replaced manual 'read' calls with 'zcurses getch' for reliable key-press detection.
- Centralized TUI initialization and cleanup with 'init_tui' and 'deinit_tui' functions.
- Implemented a global 'trap' to ensure the terminal state is restored on exit.
- Updated cursor control and other functions to use 'zcurses' equivalents.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

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.

0 participants