We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Zephir Lang - CLI colors


It's my first time working with Zephir and I want to create a class to work with command line.

I'm trying to make the output color but I can not.

With native PHP the following function works very well:

fwrite(STDOUT, "\033[0;34m\033[41mHello\033[0m");

But within a Zephir method the output just is (without colors):


Thanks in advance for any tips that can guide me. Thank you.