Skip to content

Add terminal-aware output foundation - #62

Merged
brdv merged 1 commit into
mainfrom
output-foundation
Jul 24, 2026
Merged

brdv merged 1 commit into
mainfrom
output-foundation

Conversation

@brdv

@brdv brdv commented Jul 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Introduce a dependency-free terminal-aware rendering foundation for stck.

This is stack 1/3 and targets main. Its child is #63. It detects stdout and stderr terminal capabilities independently, respects NO_COLOR and TERM=dumb, and keeps redirected output plain and grep-friendly.

Changelist

  • src/ui.rs: add terminal policy and stable error rendering.
  • src/cli.rs: route top-level preflight errors through the renderer.
  • tests/status.rs: verify captured errors remain ANSI-free.

Checklist

  • Changes are minimal and focused for this milestone
  • No breaking CLI changes unless explicitly intended
  • Errors are user-facing, actionable, and prefixed with error:
  • Added/updated tests for behavior changes
  • Updated docs/plan if behavior or scope changed

@brdv brdv self-assigned this Jul 24, 2026
@brdv brdv changed the title output-foundation Add terminal-aware output foundation Jul 24, 2026
@brdv brdv mentioned this pull request Jul 24, 2026
5 tasks done
@brdv
brdv merged commit 2c3e6ba into main Jul 24, 2026
2 checks passed
@brdv
brdv deleted the output-foundation branch July 24, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant