Skip to content

Terminal colors - #163

Merged
itsjunetime merged 5 commits into
mainfrom
june/terminal_colors
Aug 16, 2026
Merged

itsjunetime merged 5 commits into
mainfrom
june/terminal_colors

Conversation

@itsjunetime

Copy link
Copy Markdown
Owner

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.pdf living in this repo on a default installation of ghostty with this option:

ghostty_tdf_background_colors

Doesn't that look clean?

Thanks for starting this work @unorsk, and I'll merge this in once CI finishes.

@itsjunetime itsjunetime mentioned this pull request Aug 15, 2026
@itsjunetime
itsjunetime merged commit de00504 into main Aug 16, 2026
5 checks passed
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>
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.

2 participants