pl011: fix incorrect byte written in write()
This commit is contained in:
@@ -98,7 +98,7 @@ impl TerminalOutput for Pl011Inner {
|
|||||||
if byte == b'\n' && options.contains(TerminalOutputOptions::NL_TO_CRNL) {
|
if byte == b'\n' && options.contains(TerminalOutputOptions::NL_TO_CRNL) {
|
||||||
lock.send(b'\r');
|
lock.send(b'\r');
|
||||||
}
|
}
|
||||||
lock.send(b'\n');
|
lock.send(byte);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::{
|
use std::{
|
||||||
env,
|
env,
|
||||||
io::{self, stdout, Read, Stdout, Write},
|
io::{self, Read, Stdout, Write, stdout},
|
||||||
process::ExitCode,
|
process::ExitCode,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user