opentui
opentui copied to clipboard
fix: refactor asciifont and fix seg fault on color setters
Summary
Refactors ASCIIFont to use color and backgroundColor properties instead of fg/bg, and updates examples and documentation.
Changes
- API Refactor:
ASCIIFontnow acceptsColorInput | ColorInput[]forcolorandColorInputforbackgroundColor - Removed properties:
fgandbgoptions removed fromASCIIFontOptions - Updated examples: All ASCII font examples migrated to new API
- Documentation: Added missing
<textarea>and<code>components to README
Breaking Changes
fgandbgproperties removed - usecolorandbackgroundColorinstead- Color parsing handled internally - pass
ColorInputtypes (string, RGBA, etc.) directly