How to have tail -f show colored output

In the morning, I saw a friend curl a weather forecast HTTP resource on the shell terminal and found that the output text is colored, which inspired my interest in outputting colored text logs in the terminal to enhance readability.

zsh

zsh另一种shell,有较好的自动补全和提示功能,这样能更快的操作Linux系统