[][src]Function prgrs::writeln

pub fn writeln(text: &str) -> Result<()>

Use this function to write to the terminal, while displaying a progress bar

Example

use prgrs::{Prgrs, writeln};
for i in Prgrs::new(0..100, 100){
    match writeln("test") {
        Ok(_)=>(),
        Err(_) =>  println!("test")
    }
}