enable render term color on windows by default

pull/1198/head
Ned Palacios 2019-07-17 08:44:08 +08:00 committed by Alexander Medvednikov
parent 14ad70d3a0
commit 9782d85709
1 changed files with 4 additions and 0 deletions

View File

@ -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'
} }