We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Zephir Lang - CLI colors

Hello!

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):

033[0;34m\033[41mHello\033[0m

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