Nowadays most of the time, terminal support coloring. For example when you list the files in a directory, the file listed with display with different color, which indicate different type of files.
Grep too, support color, you can do this
grep --color "printf" src
grep will list all lines from files in src directory which have keyword “printf” and the word “printf” will be highlighted with color.