Fixed unix errors

This commit is contained in:
= 2018-08-21 18:06:52 +02:00
parent a367169bb7
commit 50cff8f413
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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}
} }