From 50cff8f413a962e2e0e1c6595e363f0d2d4381c9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 21 Aug 2018 18:06:52 +0200 Subject: [PATCH] Fixed unix errors --- src/kernel/unix_kernel/terminal.rs | 2 +- src/modules/output/output.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/unix_kernel/terminal.rs b/src/kernel/unix_kernel/terminal.rs index 36ff2b2..dcce331 100644 --- a/src/kernel/unix_kernel/terminal.rs +++ b/src/kernel/unix_kernel/terminal.rs @@ -1,7 +1,7 @@ //! This module contains all `unix` specific terminal related logic. 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}; pub use libc::termios; diff --git a/src/modules/output/output.rs b/src/modules/output/output.rs index 3cdb7ce..5695a46 100644 --- a/src/modules/output/output.rs +++ b/src/modules/output/output.rs @@ -42,7 +42,7 @@ impl TerminalOutput { ).unwrap(); #[cfg(not(target_os = "windows"))] - let stdout = Box::from(AnsiStdout::new()) as Box; + let stdout = Box::from(AnsiOutput::new()) as Box; TerminalOutput { stdout , is_in_raw_mode} } @@ -86,7 +86,7 @@ impl Default for TerminalOutput ).unwrap(); #[cfg(not(target_os = "windows"))] - let stdout = Box::from(AnsiStdout::new()) as Box; + let stdout = Box::from(AnsiOutput::new()) as Box; TerminalOutput { stdout , is_in_raw_mode: false} }