feat(tui-pty-e2e): Add colored debug output with indentation#74
Merged
Conversation
Add optional colored debug output using owo-colors library for the TUI PTY E2E test harness. Colors are enabled by default when stderr is a terminal and NO_COLOR is not set. Changes: - Add DebugStyles struct using owo-colors Style pattern (same as exec module) - Color the Drop implementation output (panic screen state and tracing) - Add 4-space indentation for screen contents and tracing logs - Color DEBUG_TUI_PTY debug output in poll() and wait_for() methods
The Drop implementation already prints the screen contents with nice formatting when panicking, so remove the duplication from the error message itself.
0536ecc to
d491a17
Compare
2b3ed21 to
e6fa5b0
Compare
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.
Summary
Generated with Nori
Test Plan
Share Nori with your team: https://www.npmjs.com/package/nori-ai