- Track active styles before substring range and prepend them when entering range
- Add reset codes around modal lines to prevent style bleeding between layers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add visible-subs in ansi.clj for ANSI-aware substring operations
- Enhance render-row with multi-line support and :widths flex sizing
- Enhance render-col with :heights flex sizing
- Add calculate-flex-sizes for distributing space among flex items
- Enhance render-box with :fill width/height to use available space
- Add :input element for text input with cursor
- Add :modal element for centered overlay on background
- Pass terminal size to view functions and render context
These changes enable responsive terminal UIs that adapt to window size.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>