17259e4afd
- Added new public `wrapTextWithAnsi()` function to wrap text to a visible width while preserving ANSI escape codes across line breaks. - Implemented ANSI state tracking and restoration logic to maintain color and formatting codes when wrapping multi-line text. - Migrated `wrapTextWithAnsi` implementation from tui package to pi-natives package for better code organization and reusability. - Added comprehensive test coverage for ANSI color code preservation across wrapped lines.