display_macro 0.1.0

println! but always flushing
Documentation
#[macro_export]
macro_rules! display {
    ( $($t:tt)* ) => {
        {
            use std::io::Write;
            let mut out = std::io::stdout();
            write!(out, $($t)* ).unwrap();
            write!(out, "\n").unwrap();
            out.flush().unwrap();
        }
    }
}

#[macro_export]
macro_rules! err_display {
    ( $($t:tt)* ) => {
        {
            use std::io::Write;
            let mut err = std::io::stderr();
            write!(err, $($t)* ).unwrap();
            write!(err, "\n").unwrap();
            err.flush().unwrap();
        }
    }
}