Skip to content

Expose the current tab width#754

Merged
djc merged 1 commit intoconsole-rs:mainfrom
alexisfontaine:feature/expose-tab-width
Nov 29, 2025
Merged

Expose the current tab width#754
djc merged 1 commit intoconsole-rs:mainfrom
alexisfontaine:feature/expose-tab-width

Conversation

@alexisfontaine
Copy link
Copy Markdown
Contributor

I'm developing a build workflow for my project, which includes several components that each spawn multiple sub-tasks. I want to increase the tab width to represent the depth of each task:

fn new_sub_task (parent: &ProgressBar) {
  let child = ProgressBar::new(0).set_tab_width(parent.tab_width() + 2);

  /* ... */
}

Copy link
Copy Markdown
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine, thanks.

@djc djc merged commit 7ac4a0d into console-rs:main Nov 29, 2025
11 checks passed
@alexisfontaine alexisfontaine deleted the feature/expose-tab-width branch November 29, 2025 13:17
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.

2 participants