Skip to content

Fill info block lines with characters, wrapping mid-block - #41

Merged
vtempest merged 1 commit into
masterfrom
claude/info-block-text-wrapping-rl8jbw
Aug 10, 2026
Merged

Fill info block lines with characters, wrapping mid-block#41
vtempest merged 1 commit into
masterfrom
claude/info-block-text-wrapping-rl8jbw

Conversation

@vtempest

Copy link
Copy Markdown
Collaborator

The multi-line output previously wrapped only at info-block boundaries, pushing an entire block to the next line when it didn't fit and leaving unused space at the end of each line. Replace that with continuous character-fill wrapping: each line is filled to line_wrap_length before breaking, splitting in the middle of a block when needed.

Add wrapAnsiText, which counts visible width (ignoring ANSI escape sequences), re-applies the active color at the start of each wrapped line so colors survive a mid-block break, and keeps emoji surrogate pairs intact. Remove the now-unused removeAnsiCodes helper.

Claude-Session: https://claude.ai/code/session_01PTMmeo1oiSAEj9vW5UQ2M1

The multi-line output previously wrapped only at info-block boundaries,
pushing an entire block to the next line when it didn't fit and leaving
unused space at the end of each line. Replace that with continuous
character-fill wrapping: each line is filled to line_wrap_length before
breaking, splitting in the middle of a block when needed.

Add wrapAnsiText, which counts visible width (ignoring ANSI escape
sequences), re-applies the active color at the start of each wrapped line
so colors survive a mid-block break, and keeps emoji surrogate pairs
intact. Remove the now-unused removeAnsiCodes helper.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PTMmeo1oiSAEj9vW5UQ2M1
@vtempest
vtempest merged commit a7431f0 into master Aug 10, 2026
8 of 14 checks passed
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