Revert "Remove ansi_term dependency"

Broke colors
https://github.com/denoland/deno/issues/4112#issuecomment-590545385

This reverts commit c250778704.
This commit is contained in:
Ryan Dahl 2020-02-24 17:18:15 -05:00 committed by GitHub
parent 79c6e052ed
commit 4005174f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 68 additions and 49 deletions

View file

@ -388,6 +388,9 @@ async fn test_command(
}
pub fn main() {
#[cfg(windows)]
ansi_term::enable_ansi_support().ok(); // For Windows 10
log::set_logger(&LOGGER).unwrap();
let args: Vec<String> = env::args().collect();
let flags = flags::flags_from_vec(args);