1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

enable render term color on windows by default

This commit is contained in:
Ned Palacios 2019-07-17 08:44:08 +08:00 committed by Alexander Medvednikov
parent 14ad70d3a0
commit 9782d85709

View File

@ -23,6 +23,10 @@ pub fn enable_term_color_win() {
}
pub fn format(msg, open, close string) string {
$if windows {
enable_term_color_win()
}
return '\x1b[' + open + 'm' + msg + '\x1b[' + close + 'm'
}