[PR #170] [MERGED] Introduce Text Wrap Capabilities #1126

Closed
opened 2026-03-14 09:19:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/170
Author: @kommander
Created: 9/19/2025
Status: Merged
Merged: 9/19/2025
Merged by: @kommander

Base: mainHead: text-wrap-finally


📝 Commits (10+)

📊 Changes

15 files changed (+2743 additions, -406 deletions)

View changed files

📝 package.json (+2 -1)
packages/core/src/examples/text-wrap.ts (+590 -0)
📝 packages/core/src/renderables/ScrollBox.ts (+6 -2)
📝 packages/core/src/renderables/Text.test.ts (+228 -1)
📝 packages/core/src/renderables/Text.ts (+53 -17)
📝 packages/core/src/renderables/__snapshots__/Text.test.ts.snap (+117 -0)
📝 packages/core/src/renderer.ts (+27 -6)
📝 packages/core/src/text-buffer.test.ts (+122 -8)
📝 packages/core/src/text-buffer.ts (+19 -18)
📝 packages/core/src/zig.ts (+39 -44)
📝 packages/core/src/zig/buffer.zig (+75 -47)
📝 packages/core/src/zig/lib.zig (+22 -20)
📝 packages/core/src/zig/tests/text-buffer_test.zig (+860 -79)
📝 packages/core/src/zig/text-buffer.zig (+561 -155)
📝 packages/solid/tests/layout.test.tsx (+22 -8)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/170 **Author:** [@kommander](https://github.com/kommander) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `text-wrap-finally` --- ### 📝 Commits (10+) - [`e62bc82`](https://github.com/anomalyco/opentui/commit/e62bc82b8384325d726b89a69158e521154fe9be) chunks own buffer - [`d298842`](https://github.com/anomalyco/opentui/commit/d298842982973bf8c532c78c4ad127598e4e1eb6) temp fix insertChunk - [`8b1504b`](https://github.com/anomalyco/opentui/commit/8b1504bdaf965afad5d2f2a993783c22e824e6dc) trash up the place - [`ef71f42`](https://github.com/anomalyco/opentui/commit/ef71f421e2a8cf458ca68cce0f9c2137f9b36637) native test coverage - [`8a8dfbf`](https://github.com/anomalyco/opentui/commit/8a8dfbffab043ea145b9714790b708542d6516e8) stash - [`e2f626f`](https://github.com/anomalyco/opentui/commit/e2f626fc105e9008146050e10330ec7818abe0c1) remove initial capacity requirement for test buffer - [`1ff51c9`](https://github.com/anomalyco/opentui/commit/1ff51c99867ef515b943beab11c1a49c05c3ee5b) add ts wrap tests - [`fdf2302`](https://github.com/anomalyco/opentui/commit/fdf23028c8782171324aef574f064e157d86020d) stash - [`599f2fc`](https://github.com/anomalyco/opentui/commit/599f2fc9f0a3cf4721a01d71ded282bad5bd8f69) stash - [`a6f3621`](https://github.com/anomalyco/opentui/commit/a6f3621f074dcb87a8e5e0b69e5aefb0011a1327) do not flush stdout if not split mode ### 📊 Changes **15 files changed** (+2743 additions, -406 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+2 -1) ➕ `packages/core/src/examples/text-wrap.ts` (+590 -0) 📝 `packages/core/src/renderables/ScrollBox.ts` (+6 -2) 📝 `packages/core/src/renderables/Text.test.ts` (+228 -1) 📝 `packages/core/src/renderables/Text.ts` (+53 -17) 📝 `packages/core/src/renderables/__snapshots__/Text.test.ts.snap` (+117 -0) 📝 `packages/core/src/renderer.ts` (+27 -6) 📝 `packages/core/src/text-buffer.test.ts` (+122 -8) 📝 `packages/core/src/text-buffer.ts` (+19 -18) 📝 `packages/core/src/zig.ts` (+39 -44) 📝 `packages/core/src/zig/buffer.zig` (+75 -47) 📝 `packages/core/src/zig/lib.zig` (+22 -20) 📝 `packages/core/src/zig/tests/text-buffer_test.zig` (+860 -79) 📝 `packages/core/src/zig/text-buffer.zig` (+561 -155) 📝 `packages/solid/tests/layout.test.tsx` (+22 -8) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:19:42 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1126
No description provided.