Skip to main content

write_set_progress_bar

Function write_set_progress_bar 

Source
pub fn write_set_progress_bar<W: Write>(
    w: &mut W,
    percentage: i32,
) -> Result<()>
Expand description

Set normal progress with ESC ] 9 ; 4 ; 1 ; <percentage> BEL.

percentage is clamped to 0..=100 before it is emitted.