Skip to content

Add terminal view mode to stdout renderer - #999

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/std_render
Aug 16, 2026
Merged

Add terminal view mode to stdout renderer#999
Kyle-Ye merged 2 commits into
mainfrom
feature/std_render

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 16, 2026

Copy link
Copy Markdown
Member

Summary

  • add a terminal-cell view mode alongside the existing display-list stdout output
  • render solid colors and macOS text content with terminal-aware placement and ANSI color output
  • detect terminal dimensions and color capabilities, with explicit configuration overrides
  • update the stdout example, documentation, and focused renderer coverage

Motivation

The stdout renderer previously exposed only textual display-list commands. A terminal view provides a compact visual representation that is useful for local renderer development and diagnostics while preserving the existing display-list mode.

Validation

  • Focused stdout renderer suite passes (10 tests)
  • The macOS stdout example renders a centered text label and color regions in a 48 by 16 terminal canvas
  • Diff whitespace checks pass

@github-actions github-actions Bot added area: docs Documentation area label. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: feature New API, behavior, platform support, or user-facing capability. labels Aug 16, 2026
@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 16, 2026 17:28
@tuist

tuist Bot commented Aug 16, 2026

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI 0 % 1016 0 1016 bb810feab

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI 1m 13s bb810feab

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.04478% with 97 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.68%. Comparing base (f161632) to head (dffdbd6).

Files with missing lines Patch % Lines
...Render/DisplayList/DisplayListStdoutRenderer.swift 71.64% 93 Missing ⚠️
...e/Render/DisplayList/DisplayListViewRenderer.swift 0.00% 2 Missing ⚠️
...OpenSwiftUICore/Render/RendererConfiguration.swift 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #999      +/-   ##
==========================================
+ Coverage   26.19%   26.68%   +0.49%     
==========================================
  Files         736      736              
  Lines       55749    56081     +332     
==========================================
+ Hits        14606    14968     +362     
+ Misses      41143    41113      -30     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 0dfa923 into main Aug 16, 2026
9 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/std_render branch August 16, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation area label. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant