mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #572] [CLOSED] add captureSpans and getSpanLines for styled terminal output capture #627
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#627
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/572
Author: @remorses
Created: 1/23/2026
Status: ❌ Closed
Base:
main← Head:capture-spans-upstream📝 Commits (1)
b35b422add captureSpans and getSpanLines for styled terminal output capture📊 Changes
4 files changed (+265 additions, -1 deletions)
View changed files
📝
packages/core/src/buffer.ts(+75 -1)➕
packages/core/src/testing/capture-spans.test.ts(+145 -0)📝
packages/core/src/testing/test-renderer.ts(+15 -0)📝
packages/core/src/types.ts(+30 -0)📄 Description
Adds
getSpanLines()toOptimizedBufferandcaptureSpans()to test renderer for extracting styled terminal content as structured data.This enables serializing terminal output with colors and text attributes for use cases like web rendering or testing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.