Skip to content

ptree: Truncate output lines to terminal width#109

Merged
basil merged 1 commit into
masterfrom
columns
Mar 5, 2026
Merged

ptree: Truncate output lines to terminal width#109
basil merged 1 commit into
masterfrom
columns

Conversation

@basil

@basil basil commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Add a -w/--wrap flag to allow lines to wrap; by default, lines are truncated to the terminal width (via TIOCGWINSZ or ).

Refactor cmd_summary_from() to return a String instead of printing directly, enabling callers to measure and truncate the line before output.

Fixes #54

Add a -w/--wrap flag to allow lines to wrap; by default, lines are
truncated to the terminal width (via TIOCGWINSZ or ).

Refactor cmd_summary_from() to return a String instead of printing
directly, enabling callers to measure and truncate the line before
output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@basil basil added the Type: Enhancement A request, idea, or new functionality label Mar 5, 2026
@github-actions github-actions Bot added Component: pstack Issues related to pstack(1) Component: ptree Issues related to ptree(1) labels Mar 5, 2026
@basil basil merged commit f2070a0 into master Mar 5, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: pstack Issues related to pstack(1) Component: ptree Issues related to ptree(1) Type: Enhancement A request, idea, or new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrap lines in ptree(1)

1 participant