Format: echo "/033[word background color; font color m string/033[control code"
If you simply display the font color can be fixed control code bit 0m.
Format: echo "/033[word background color; font Color m string/033[0m"
Word background color range: 40-4940: Black 41: Crimson 42: Green 43: Yellow 44: Blue 45: Purple 46: Dark green 47: White word color: 30-3930: Black 31: Red 32: Green 33: Yellow 34: Blue 35: Purple 36: Dark green 37: White ANSI Control Code \33[0m Close All properties \33[01m set high brightness \33[04m underline \33[05m flicker \33[07m reverse \33[08m blanking \33[30m--\33[37m set foreground color \33[40m--\33[47m set background Color \33[na cursor up n line \33[NB cursor down n line \33[NC cursor right shift n row \33[nd cursor left n line \33[y;xh set cursor position \33[2j clear screen \33[k erase contents from cursor to end of line \33[s save cursor position \33[u restore Cursor position \33[?25l Hide cursor \33[?25h display cursor
Instance
Make the font red and keep flashing #echo-e "\033[31m \033[05m Please confirm your operation, enter [y/n] \033[0m" or #echo-e "\033[31m \033[05m Please confirm your operation, enter [y/n] \033[0m "
Shell Display with color font