From c5615fbc82554d5e85dbc02da493bb59df2cd492 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Jan 2021 00:48:18 +0800 Subject: add tty.has_color256 --- xmake/modules/core/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/core/tools/gcc.lua') diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index bbe3f0333..4be53c113 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -361,7 +361,7 @@ end function _has_color_diagnostics(self) local colors_diagnostics = _g._HAS_COLOR_DIAGNOSTICS if colors_diagnostics == nil then - if io.isatty() and (tty.has_color8() or colors.color256()) then + if io.isatty() and (tty.has_color8() or tty.has_color256()) then local theme = colors.theme() if theme and theme:name() ~= "plain" then -- for gcc -- cgit v1.3.1