mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #440] Add StatelessTerminal renderable. Render ANSI as opentui styled text #1321
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/440
Author: @remorses
Created: 12/23/2025
Status: 🔄 Open
Base:
main← Head:ghostty-opentui-2📝 Commits (10+)
4a41113upgrade to zig 0.15.2 with ghostty-vt dependencybe69a9bfix(ci): update zig to 0.15.2 and skip macOS cross-compilation from Linux1fe9c14fix: add macOS SDK for cross-compilation from Linux59b5391fix: add explicit refs to git URLs in build.zig.zon7e8a205fix: correct hash for macos_sdk dependency08a4dadfix: use raw macOS SDK tarball instead of outdated zig package920c5d4fix(ci): only build lib, not native binaries for all platformsd7e55c5fix(ci): use macos-latest runners for cross-compilation7492abdfix: build only native platform by default, add --all for all platformsbac4cd3fix: remove reference to non-existent ghostty-terminal.zig test file📊 Changes
20 files changed (+1326 additions, -38 deletions)
View changed files
📝
.github/workflows/build-examples.yml(+1 -1)📝
packages/core/package.json(+2 -0)📝
packages/core/scripts/build.ts(+38 -30)➕
packages/core/src/examples/terminal-simple-demo.ts(+162 -0)📝
packages/core/src/lib/index.ts(+1 -0)➕
packages/core/src/lib/vterm-ffi.ts(+80 -0)➕
packages/core/src/renderables/Terminal.test.ts(+254 -0)➕
packages/core/src/renderables/Terminal.ts(+144 -0)📝
packages/core/src/renderables/index.ts(+1 -0)📝
packages/core/src/renderer.ts(+1 -1)📝
packages/core/src/tests/wrap-resize-perf.test.ts(+1 -1)📝
packages/core/src/zig.ts(+152 -2)📝
packages/core/src/zig/build.zig(+9 -2)📝
packages/core/src/zig/build.zig.zon(+4 -0)📝
packages/core/src/zig/lib.zig(+63 -0)📝
packages/core/src/zig/renderer.zig(+2 -1)➕
packages/core/src/zig/vterm.zig(+403 -0)📝
packages/react/src/components/index.ts(+2 -0)📝
packages/react/src/types/components.ts(+4 -0)📝
packages/solid/src/elements/index.ts(+2 -0)📄 Description
Stacked on #439 (zig 0.15 upgrade).
Adds terminal rendering support using ghostty-vt:
StatelessTerminalRenderable- fast renderer for first few lines of output (renders in ~ms, for opencode bash previews)The terminal output is renderd line by line instead of using character cells. This should make it pretty fast even for super long ANSI outputs if they don't use many colors. Each line will simply be a line of text in opentui.
Includes VTerm FFI bindings and registration in React, Solid, and Vue.
Here is how bash outputs looks like in opencode using these terminal renderables (only stateless for now):
https://github.com/user-attachments/assets/f5c072be-8ffd-4ab4-8149-114ddc7db2fb
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.