summaryrefslogtreecommitdiff
path: root/docs/zh
diff options
context:
space:
mode:
authorruki <[email protected]>2017-08-18 11:44:10 +0800
committerruki <[email protected]>2017-08-18 11:46:56 +0800
commitb714bf39904f7425a32d5238d0737239a6e5d045 (patch)
tree4d74ce8d2508356d823df4de71b93092744025fa /docs/zh
parent7c11f1e69f0aa3bf30410f660dff16a647860320 (diff)
detect true color
Diffstat (limited to 'docs/zh')
-rw-r--r--docs/zh/manual.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/zh/manual.md b/docs/zh/manual.md
index f20a94079..0008c546e 100644
--- a/docs/zh/manual.md
+++ b/docs/zh/manual.md
@@ -4007,6 +4007,15 @@ if colors.truecolor() then
end
```
+xmake对于truecolor的检测支持,是通过`$COLORTERM`环境变量来实现的,如果你的终端支持truecolor,可以手动设置此环境变量,来告诉xmake启用truecolor支持。
+
+可以通过下面的命令来启用和测试:
+
+```bash
+$ export COLORTERM=truecolor
+$ xmake --version
+```
+
##### cprintf
###### 无换行彩色打印终端日志