Closed BartMassey closed 2 years ago
Turns out ansi_term::enable_ansi_support() is available only on Windows. Change the imports in terminal.rs to
ansi_term::enable_ansi_support()
terminal.rs
use ansi_term::{ ANSIGenericStrings, Color::{self, Fixed, RGB}, }; #[cfg(windows)] use ansi_term::enable_ansi_support;
Nice catch! Fixed in https://github.com/Lioness100/guess-that-lang/commit/2034218d34e318cf461deff3eab73068c1be9fa1
Turns out
ansi_term::enable_ansi_support()
is available only on Windows. Change the imports interminal.rs
to