File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ repository = "https://github.com/o2sh/onefetch"
9
9
exclude = [" assets/*.png" ]
10
10
11
11
[dependencies ]
12
- colored = " 1.6.1 "
12
+ colored = " 1.8.0 "
13
13
git2 = {version = " 0.7.5" , default-features = false }
14
14
tokei = " 10.0"
15
15
license = " 0.7.1"
16
16
bytecount = " 0.5.1"
17
17
clap = " 2.33.0"
18
18
strum = " 0.16.0"
19
19
strum_macros = " 0.16.0"
20
+ ansi_term = " 0.12"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ extern crate colored;
3
3
extern crate git2;
4
4
extern crate license;
5
5
extern crate tokei;
6
+ extern crate ansi_term;
6
7
#[ macro_use]
7
8
extern crate clap;
8
9
extern crate strum;
@@ -445,6 +446,9 @@ impl fmt::Display for Language {
445
446
}
446
447
447
448
fn main ( ) -> Result < ( ) > {
449
+ if cfg ! ( windows) && !ansi_term:: enable_ansi_support ( ) . is_ok ( ) {
450
+ colored:: control:: set_override ( false ) ;
451
+ }
448
452
if !is_git_installed ( ) {
449
453
return Err ( Error :: GitNotInstalled ) ;
450
454
}
You can’t perform that action at this time.
0 commit comments