For example, see how the awk script on this page prints a colorful line on text: https://gist.github.com/XVilka/8346728 kde/gnome/xfce4 terminals now support true-color, and C++ interface can certainly support this functionality.