fixed formatting
This commit is contained in:
parent
206c61de9e
commit
ab12a8f8a6
10
src/raw.rs
10
src/raw.rs
|
@ -73,9 +73,9 @@ impl<W: Write> Write for RawTerminal<W> {
|
|||
pub trait IntoRawMode: Write + Sized {
|
||||
/// Switch to raw mode.
|
||||
///
|
||||
/// Raw mode means that stdin won't be printed (it will instead have to be written manually by the
|
||||
/// program). Furthermore, the input isn't canonicalised or buffered (that is, you can read from
|
||||
/// stdin one byte of a time). The output is neither modified in any way.
|
||||
/// Raw mode means that stdin won't be printed (it will instead have to be written manually by
|
||||
/// the program). Furthermore, the input isn't canonicalised or buffered (that is, you can
|
||||
/// read from stdin one byte of a time). The output is neither modified in any way.
|
||||
fn into_raw_mode(self) -> io::Result<RawTerminal<Self>>;
|
||||
}
|
||||
|
||||
|
@ -110,9 +110,7 @@ impl<W: Write> IntoRawMode for W {
|
|||
use control::TermWrite;
|
||||
|
||||
self.csi(b"r").map(|_| {
|
||||
let mut res = RawTerminal {
|
||||
output: self,
|
||||
};
|
||||
let mut res = RawTerminal { output: self };
|
||||
res
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue