We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df7598 commit 833bc0bCopy full SHA for 833bc0b
src/pb.rs
@@ -462,7 +462,7 @@ impl<T: Write> ProgressBar<T> {
462
}
463
464
/// Get terminal width, from configuration, terminal size, or default(80)
465
- fn width(&mut self) -> usize {
+ pub fn width(&mut self) -> usize {
466
if let Some(w) = self.width {
467
w
468
} else if let Some((Width(w), _)) = terminal_size() {
0 commit comments