diff --git a/src/event.rs b/src/event.rs index d3152b45a..accc19c1d 100644 --- a/src/event.rs +++ b/src/event.rs @@ -74,6 +74,7 @@ use std::fmt; use std::hash::{Hash, Hasher}; +use std::io; use std::time::Duration; use bitflags::bitflags; diff --git a/src/style.rs b/src/style.rs index c54315885..f4cd55433 100644 --- a/src/style.rs +++ b/src/style.rs @@ -366,6 +366,16 @@ impl Command for SetStyle { Ok(()) } + + #[cfg(windows)] + fn execute_winapi(&self) -> Result<()> { + panic!("tried to execute SetStyle command using WinAPI, use ANSI instead"); + } + + #[cfg(windows)] + fn is_ansi_code_supported(&self) -> bool { + true + } } /// A command that prints styled content.