Lioness100 / guess-that-lang

CLI game to see how fast you can guess the language of a code block!
Apache License 2.0
168 stars 7 forks source link

Will not compile on Linux #7

Closed BartMassey closed 2 years ago

BartMassey commented 2 years ago

Turns out ansi_term::enable_ansi_support() is available only on Windows. Change the imports in terminal.rs to

use ansi_term::{
    ANSIGenericStrings,
    Color::{self, Fixed, RGB},
};
#[cfg(windows)]
use ansi_term::enable_ansi_support;
Lioness100 commented 2 years ago

Nice catch! Fixed in https://github.com/Lioness100/guess-that-lang/commit/2034218d34e318cf461deff3eab73068c1be9fa1