blob: ee82e5bd9e440a266d9b2345ca11657688db91a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extern crate strip_ansi_escapes;
use std::io;
use strip_ansi_escapes::Writer;
pub fn work() -> io::Result<()> {
let stdin = io::stdin();
let mut in_lock = stdin.lock();
let stdout = io::stdout();
let out_lock = stdout.lock();
let mut writer = Writer::new(out_lock);
io::copy(&mut in_lock, &mut writer)?;
Ok(())
}
pub fn main() {
work().unwrap();
}
|