Fixes for Redox

This commit is contained in:
Ticki 2016-03-07 22:22:25 +01:00
parent fd2d74d41a
commit 0fde52e3f9
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ impl<W: Write> IntoRawMode for W {
}
#[cfg(target_os = "redox")]
fn into_raw_mode(self) -> Result<TerminalRestorer<W>, TerminalError> {
use TermControl;
if let Err(_) = self.csi("r") {
Err(TerminalError::StdoutError)
} else {