append newline to tty when done
cargo devel CI / cargo CI (push) Successful in 22s
Details
cargo devel CI / cargo CI (push) Successful in 22s
Details
This commit is contained in:
parent
145dfc598b
commit
4ca5ab26cd
|
@ -28,6 +28,8 @@ fn main() -> Result<(), io::Error> {
|
|||
.write_all(&buf[..read_amount])
|
||||
.inspect_err(|err| eprintln!("{err}"))?;
|
||||
}
|
||||
tty.write(b"\n").inspect_err(|err| eprintln!("{err}"))?; // otherwise weird wrapped together
|
||||
// lines may happen
|
||||
tty.flush().inspect_err(|err| eprintln!("{err}"))?; // make sure it comes there
|
||||
stdout.flush().inspect_err(|err| eprintln!("{err}"))?; // make sure it comes there
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue