mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
![Delyan Angelov](/assets/img/avatar_default.png)
* compiler: extract and cleanup error handling functionality into its own file compiler/compile_errors.v * compiler: implement p.error_with_token_index and p.warn_with_token_index and use them. Fix tests. * tools/performance_compare: add a 'Source lines in compiler/' line * MSVC does not have STDOUT_FILENO nor STDERR_FILENO ...
10 lines
164 B
V
10 lines
164 B
V
module term
|
|
|
|
pub fn can_show_color_on_stdout() bool {
|
|
return can_show_color_on_fd(1)
|
|
}
|
|
|
|
pub fn can_show_color_on_stderr() bool {
|
|
return can_show_color_on_fd(2)
|
|
}
|