Fix Clang output colors and fonts.
Change substr_replace usage in previous fix.
Merge branch 'dev' into 'master'.