Prevent progress bar from overflowing
Use the `wide_bar` indicatif format specifier to truncate the progress bar when the terminal is narrow. This prevents the progress bar from printing mulitple times when the terminal is narrow type: fixed pr: https://github.com/casey/intermodal/pull/353
This commit is contained in:
parent
a67eb72848
commit
4dfe537fa5
|
@ -4,7 +4,8 @@ Changelog
|
|||
|
||||
UNRELEASED - 2020-04-10
|
||||
-----------------------
|
||||
- :package: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Improve install.sh and documentation ([#352](https://github.com/casey/intermodal/pull/352)) - _Casey Rodarmor <casey@rodarmor.com>_
|
||||
- :bug: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Prevent progress bar from overflowing ([#353](https://github.com/casey/intermodal/pull/353)) - _Casey Rodarmor <casey@rodarmor.com>_
|
||||
- :package: [`a67eb72848c9`](https://github.com/casey/intermodal/commit/a67eb72848c9f30513fde2849e1f07a332931e6c) Improve install.sh and documentation ([#352](https://github.com/casey/intermodal/pull/352)) - _Casey Rodarmor <casey@rodarmor.com>_
|
||||
- :art: [`e54bdeb95d93`](https://github.com/casey/intermodal/commit/e54bdeb95d932bd5f81870f34999de37b615a69d) Remove use of unreachable in favor of internal errors ([#351](https://github.com/casey/intermodal/pull/351)) - Fixes [#188](https://github.com/casey/intermodal/issues/188) - _Casey Rodarmor <casey@rodarmor.com>_
|
||||
- :books: [`52b78b90f675`](https://github.com/casey/intermodal/commit/52b78b90f6751a72a64074619fbf19df2988ac14) Improve badges ([#350](https://github.com/casey/intermodal/pull/350)) - _Casey Rodarmor <casey@rodarmor.com>_
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ pub(crate) const TICK_CHARS: &str = concat!(
|
|||
"⢸⢹⢺⢻⢼⢽⢾⢿⣸⣹⣺⣻⣼⣽⣾⣿", // 0b1111----
|
||||
);
|
||||
|
||||
pub(crate) const PROGRESS_STYLE: &str = "{spinner:.green} ⟪{elapsed_precise}⟫ ⟦{bar:.cyan}⟧ \
|
||||
pub(crate) const PROGRESS_STYLE: &str = "{spinner:.green} ⟪{elapsed_precise}⟫ ⟦{wide_bar:.cyan}⟧ \
|
||||
{binary_bytes}/{binary_total_bytes} \
|
||||
⟨{binary_bytes_per_sec}, {eta}⟩";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user