feat: add ansi256 color support - #10
Conversation
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR adds ANSI 256-colour support to the ChangesANSI 256-colour support
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
Summary
Adds explicit ANSI 256-color support to the styling API.
This includes foreground and background builders for ANSI 256 palette indexes,
plus
color256aliases for callers who prefer that naming. The new color specrenders through the existing SGR composition path, so named colors, RGB output,
runtime color modes, and
NO_COLORbehavior remain unchanged.The README, crate docs, and basic example now show the ANSI 256 API alongside
the existing color methods.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests