Skip to content
Snippets Groups Projects
Commit 25c7cd86 authored by ticki's avatar ticki
Browse files

Fix Redox raw mode

parent 9bd833a6
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,7 @@ pub struct RawTerminal<W: Write> {
#[cfg(target_os = "redox")]
impl<W: Write> Drop for RawTerminal<W> {
fn drop(&mut self) {
use control::TermWrite;
self.csi(b"R").unwrap();
write!(self, csi!("?82h")).unwrap();
}
}
......@@ -98,11 +97,8 @@ impl<W: Write> IntoRawMode for W {
#[cfg(target_os = "redox")]
fn into_raw_mode(mut self) -> io::Result<RawTerminal<W>> {
use control::TermWrite;
self.csi(b"r").map(|_| {
let mut res = RawTerminal { output: self };
res
write!(self, csi!("?82h")).map(|_| {
RawTerminal { output: self }
})
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment