summaryrefslogtreecommitdiff
path: root/xmake/core/base/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-28 00:48:18 +0800
committerruki <[email protected]>2021-01-28 00:48:18 +0800
commitc5615fbc82554d5e85dbc02da493bb59df2cd492 (patch)
tree2287eb98f6c355735c220143ae5657874f6d5db8 /xmake/core/base/option.lua
parentd98169322f86c2a95d6b4e62a56918414fa1349d (diff)
add tty.has_color256
Diffstat (limited to 'xmake/core/base/option.lua')
-rw-r--r--xmake/core/base/option.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index 126ebfb0a..5255a6a2b 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -24,6 +24,7 @@ local option = option or {}
-- load modules
local cli = require("base/cli")
local table = require("base/table")
+local tty = require("base/tty")
local colors = require("base/colors")
local text = require("base/text")
@@ -499,7 +500,7 @@ function option.show_logo(logo, opt)
-- make rainbow for logo
opt = opt or {}
- if colors.truecolor() or colors.color256() then
+ if colors.truecolor() or tty.has_color256() then
local lines = {}
local seed = opt.seed or 236
for _, line in ipairs(logo:split("\n")) do