Repository navigation
Terminal colors - #163
Merged
Merged
Terminal colors#163
Conversation
Closed
mkasa
pushed a commit
to mkasa/tdf
that referenced
this pull request
Nov 16, 2026
Brings in the switch to upstream ratatui 0.30 / ratatui-image 11 (itsjunetime#154) and the -t/--terminal-colors flag (itsjunetime#163). Adapted the fork's code to the new APIs (FontSize fields, Protocol::size, Iterm2::new taking a Size, the Skip widget). Since upstream ratatui diffs frames instead of rewriting every cell, coming back from ctrl+z now clears the terminal explicitly so that the whole screen is drawn again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
This builds on #138, but cleans it up and changes parsing to avoid allocations and adds some tests.
I didn't realize how nice this would be when I first saw the PR, but I think it's actually quite pleasing to use. For example, take the
geotopo.pdfliving in this repo on a default installation of ghostty with this option:Doesn't that look clean?
Thanks for starting this work @unorsk, and I'll merge this in once CI finishes.