Echo Color Zsh at Color

Echo Color Zsh. So, i wanted to have an easy way to color my script output. # note that some terminals do not support all combinations.

zshのプロンプトをかわいくした /home/jiro4989
zshのプロンプトをかわいくした /home/jiro4989 from scrapbox.io

The colors function records the names of colors and similar attributes (bold, underline and so on) in the associative array color.this array associates names with terminal attribute strings, which are numbers, e.g. Color of output is different than color of ls output zsh is responsible for printing and painting completion strings. Echo $0 # /bin/zsh introducing ps1

zshのプロンプトをかわいくした /home/jiro4989

$ echo hello world hello world. Each shell has specific escape sequences that must be used. This needs the correct command in the correct format is all. How can i achieve this with zsh?