enable render term color on windows by default
parent
14ad70d3a0
commit
9782d85709
|
@ -23,6 +23,10 @@ pub fn enable_term_color_win() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn format(msg, open, close string) string {
|
pub fn format(msg, open, close string) string {
|
||||||
|
$if windows {
|
||||||
|
enable_term_color_win()
|
||||||
|
}
|
||||||
|
|
||||||
return '\x1b[' + open + 'm' + msg + '\x1b[' + close + 'm'
|
return '\x1b[' + open + 'm' + msg + '\x1b[' + close + 'm'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue