forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
- Text output wraps at terminal edge, breaking mid-word. Long paragraphs are hard to read.
- No left/right margins — content starts at column 0, feels cramped.
Solution
- Set max content width to ~100 chars (or terminal width - 4, whichever is smaller)
- Add 2-char left padding to all output (text, tools, rules, metrics)
- Word-wrap text at the max width boundary
Implementation
Add a wrap(text, width) utility that:
- Splits text into words
- Joins words into lines that don't exceed
width - Preserves existing line breaks
Apply left padding via a pad constant (" ") prepended to all write() calls in the output path.
Screenshots
QA round 3 — Image 3 shows text wrapping at terminal edge.
Related
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request