Skip to content

feat: add text overflow policies - #69

Merged
meszmate merged 3 commits into
mainfrom
feature/text-overflow
Mar 31, 2026
Merged

meszmate merged 3 commits into
mainfrom
feature/text-overflow

Conversation

@meszmate

@meszmate meszmate commented Mar 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Adds src/style/overflow.zig with overflow modes: hidden, ellipsis, word_wrap, char_wrap
  • Integrates into Style struct via .overflow() builder method
  • ANSI-aware: preserves escape sequences across truncation/wrap boundaries
  • Includes text_overflow example showing all modes side by side

…rap)

Adds configurable overflow handling integrated into the Style system.
Supports clip, ellipsis truncation, word-wrap, and character-wrap modes.
ANSI-aware processing preserves escape sequences across boundaries.
Managed.items cannot be freed directly by the allocator. Use
toOwnedSlice() to return a proper freeable allocation.
@meszmate
meszmate merged commit 1f9f219 into main Mar 31, 2026
9 checks passed
@meszmate
meszmate deleted the feature/text-overflow branch March 31, 2026 03:37
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.

1 participant