xmake-color-output
Installation
SKILL.md
cprint, Color Tags & Disabling Color
cprint / cprintf are xmake's colored terminal printers. They look like print/printf but accept inline style tags:
cprint("${bright green}hello ${clear}xmake")
Available in any script-domain code: on_load, on_build, after_build, on_run, on_test, task bodies, external modules imported via import(). Not available in the description domain (top-level set_*/add_*) — use print there instead, and only for debugging.
Basic usage
cprint("hello") -- plain text, like print
cprint("${red}error") -- red text
cprint("${bright red}ERROR") -- bold red
cprintf("%d errors\n", n) -- printf-style
print("hello, %s", name) -- plain print; no tags, no newline-less variant