summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorruki <[email protected]>2017-08-18 10:11:48 +0800
committerruki <[email protected]>2017-08-18 10:11:48 +0800
commite9a58ed80873622d8de67ff8fad2b3bec868c7e5 (patch)
tree051d6456059b89dbdafcef8a286f430b0e206132 /docs
parent628308885eb6b647256e6c56307579ee89607704 (diff)
support true colors
Diffstat (limited to 'docs')
-rw-r--r--docs/manual.md12
-rw-r--r--docs/zh/manual.md12
2 files changed, 24 insertions, 0 deletions
diff --git a/docs/manual.md b/docs/manual.md
index 24cca0afe..b794a88b5 100644
--- a/docs/manual.md
+++ b/docs/manual.md
@@ -3978,6 +3978,18 @@ xmake会同时支持这两种写法,内部会去自动智能检测,选择输
所有的emoji表情,以及xmake里面对应的key,都可以通过[emoji符号](http://www.emoji-cheat-sheet.com/)里面找到。。
+2.1.7版本支持24位真彩色输出,如果终端支持的话:
+
+```lua
+import("core.base.colors")
+if colors.truecolor() then
+ cprint("${255;0;0}hello")
+ cprint("${on;255;0;0}hello${clear} xmake")
+ cprint("${bright 255;0;0 underline}hello")
+ cprint("${bright on;255;0;0 0;255;0}hello${clear} xmake")
+end
+```
+
##### cprintf
###### 无换行彩色打印终端日志
diff --git a/docs/zh/manual.md b/docs/zh/manual.md
index 11cb547cb..f20a94079 100644
--- a/docs/zh/manual.md
+++ b/docs/zh/manual.md
@@ -3995,6 +3995,18 @@ xmake会同时支持这两种写法,内部会去自动智能检测,选择输
所有的emoji表情,以及xmake里面对应的key,都可以通过[emoji符号](http://www.emoji-cheat-sheet.com/)里面找到。。
+2.1.7版本支持24位真彩色输出,如果终端支持的话:
+
+```lua
+import("core.base.colors")
+if colors.truecolor() then
+ cprint("${255;0;0}hello")
+ cprint("${on;255;0;0}hello${clear} xmake")
+ cprint("${bright 255;0;0 underline}hello")
+ cprint("${bright on;255;0;0 0;255;0}hello${clear} xmake")
+end
+```
+
##### cprintf
###### 无换行彩色打印终端日志