Fixed unix errors
This commit is contained in:
parent
a367169bb7
commit
50cff8f413
@ -1,7 +1,7 @@
|
|||||||
//! This module contains all `unix` specific terminal related logic.
|
//! This module contains all `unix` specific terminal related logic.
|
||||||
|
|
||||||
use self::libc::{c_int, c_ushort, ioctl, STDOUT_FILENO, TIOCGWINSZ};
|
use self::libc::{c_int, c_ushort, ioctl, STDOUT_FILENO, TIOCGWINSZ};
|
||||||
use common::commands::unix_command::{RawModeCommand, NoncanonicalModeCommand};
|
use common::commands::unix_command::NoncanonicalModeCommand;
|
||||||
use {libc, TerminalOutput, Screen};
|
use {libc, TerminalOutput, Screen};
|
||||||
pub use libc::termios;
|
pub use libc::termios;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ impl TerminalOutput {
|
|||||||
).unwrap();
|
).unwrap();
|
||||||
|
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
let stdout = Box::from(AnsiStdout::new()) as Box<IStdout + Send + Sync>;
|
let stdout = Box::from(AnsiOutput::new()) as Box<IStdout + Send + Sync>;
|
||||||
|
|
||||||
TerminalOutput { stdout , is_in_raw_mode}
|
TerminalOutput { stdout , is_in_raw_mode}
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ impl Default for TerminalOutput
|
|||||||
).unwrap();
|
).unwrap();
|
||||||
|
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
let stdout = Box::from(AnsiStdout::new()) as Box<IStdout + Send + Sync>;
|
let stdout = Box::from(AnsiOutput::new()) as Box<IStdout + Send + Sync>;
|
||||||
|
|
||||||
TerminalOutput { stdout , is_in_raw_mode: false}
|
TerminalOutput { stdout , is_in_raw_mode: false}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user