[PR #90] [MERGED] Almost full unicode #279

Closed
opened 2026-03-02 23:45:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/90
Author: @kommander
Created: 8/27/2025
Status: Merged
Merged: 8/27/2025
Merged by: @kommander

Base: mainHead: almost-full-unicode


📝 Commits (1)

📊 Changes

62 files changed (+2665 additions, -778 deletions)

View changed files

📝 packages/core/src/Renderable.ts (+26 -34)
📝 packages/core/src/benchmark/renderer-benchmark.ts (+26 -13)
📝 packages/core/src/buffer.ts (+8 -2)
📝 packages/core/src/console.ts (+1 -1)
📝 packages/core/src/examples/ascii-font-selection-demo.ts (+26 -13)
📝 packages/core/src/examples/console-demo.ts (+49 -11)
📝 packages/core/src/examples/fonts.ts (+6 -3)
📝 packages/core/src/examples/fractal-shader-demo.ts (+8 -4)
📝 packages/core/src/examples/framebuffer-demo.ts (+30 -15)
packages/core/src/examples/full-unicode-demo.ts (+181 -0)
📝 packages/core/src/examples/hast-syntax-highlighting-demo.ts (+12 -6)
📝 packages/core/src/examples/index.ts (+24 -6)
📝 packages/core/src/examples/input-demo.ts (+14 -7)
📝 packages/core/src/examples/input-select-layout-demo.ts (+30 -15)
📝 packages/core/src/examples/lights-phong-demo.ts (+10 -5)
📝 packages/core/src/examples/live-state-demo.ts (+39 -20)
📝 packages/core/src/examples/mouse-interaction-demo.ts (+25 -11)
📝 packages/core/src/examples/nested-zindex-demo.ts (+42 -21)
📝 packages/core/src/examples/opentui-demo.ts (+108 -54)
📝 packages/core/src/examples/physx-planck-2d-demo.ts (+10 -5)

...and 42 more files

📄 Description

  • Supports graphemes in native OptimizedBuffer and TextBuffer
  • adds the zg dependency for the zig build, to iterate grapheme clusters and measure their width
  • Adds terminal capability detection, currently using explicit width when available and setting preffered WidthMethod
  • Cursor state is now Renderer scoped, not global anymore
  • In ts OptimizedBuffer and TextBuffer now need a mandatory width method value (will be taken from the renderer in most cases, as the renderer holds the capabilities for the terminal)
  • Refactors Renderable constructor to now take a RenderContext (the renderer implements this context), moving the id into options and making it optional to use a custom id.
  • Made react and solid reconcilers RenderContext aware
  • Fixes a mouse capture bug where renderables would not be draggable anymore after dropping

Note: There are still known issues with unicode/grapheme rendering across terminals, help wanted.


🔄 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/90 **Author:** [@kommander](https://github.com/kommander) **Created:** 8/27/2025 **Status:** ✅ Merged **Merged:** 8/27/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `almost-full-unicode` --- ### 📝 Commits (1) - [`cff2958`](https://github.com/anomalyco/opentui/commit/cff295845a5f8f83e599478c2d17f7afd0ab186a) almost full unicode ### 📊 Changes **62 files changed** (+2665 additions, -778 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/Renderable.ts` (+26 -34) 📝 `packages/core/src/benchmark/renderer-benchmark.ts` (+26 -13) 📝 `packages/core/src/buffer.ts` (+8 -2) 📝 `packages/core/src/console.ts` (+1 -1) 📝 `packages/core/src/examples/ascii-font-selection-demo.ts` (+26 -13) 📝 `packages/core/src/examples/console-demo.ts` (+49 -11) 📝 `packages/core/src/examples/fonts.ts` (+6 -3) 📝 `packages/core/src/examples/fractal-shader-demo.ts` (+8 -4) 📝 `packages/core/src/examples/framebuffer-demo.ts` (+30 -15) ➕ `packages/core/src/examples/full-unicode-demo.ts` (+181 -0) 📝 `packages/core/src/examples/hast-syntax-highlighting-demo.ts` (+12 -6) 📝 `packages/core/src/examples/index.ts` (+24 -6) 📝 `packages/core/src/examples/input-demo.ts` (+14 -7) 📝 `packages/core/src/examples/input-select-layout-demo.ts` (+30 -15) 📝 `packages/core/src/examples/lights-phong-demo.ts` (+10 -5) 📝 `packages/core/src/examples/live-state-demo.ts` (+39 -20) 📝 `packages/core/src/examples/mouse-interaction-demo.ts` (+25 -11) 📝 `packages/core/src/examples/nested-zindex-demo.ts` (+42 -21) 📝 `packages/core/src/examples/opentui-demo.ts` (+108 -54) 📝 `packages/core/src/examples/physx-planck-2d-demo.ts` (+10 -5) _...and 42 more files_ </details> ### 📄 Description - Supports graphemes in native `OptimizedBuffer` and `TextBuffer` - adds the `zg` dependency for the zig build, to iterate grapheme clusters and measure their width - Adds terminal capability detection, currently using explicit width when available and setting preffered `WidthMethod` - Cursor state is now Renderer scoped, not global anymore - In ts `OptimizedBuffer` and `TextBuffer` now need a mandatory width method value (will be taken from the renderer in most cases, as the renderer holds the capabilities for the terminal) - Refactors `Renderable` constructor to now take a `RenderContext` (the renderer implements this context), moving the `id` into options and making it optional to use a custom id. - Made react and solid reconcilers `RenderContext` aware - Fixes a mouse capture bug where renderables would not be draggable anymore after dropping Note: There are still known issues with unicode/grapheme rendering across terminals, help wanted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:45:45 +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#279
No description provided.