forked from extern/nushell
Flush out! lines, helps autoview (#2952)
This commit is contained in:
parent
899d324a9c
commit
2e6d836dd1
@ -4,7 +4,11 @@
|
|||||||
/// and stray printlns left by accident
|
/// and stray printlns left by accident
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! out {
|
macro_rules! out {
|
||||||
($($tokens:tt)*) => { print!($($tokens)*) }
|
($($tokens:tt)*) => {
|
||||||
|
use std::io::Write;
|
||||||
|
print!($($tokens)*);
|
||||||
|
let _ = std::io::stdout().flush();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Outputs to standard out with a newline added
|
/// Outputs to standard out with a newline added
|
||||||
|
Loading…
Reference in New Issue
Block a user