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:
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
Block a user