Make index pointer "static" and check to see if terminal can do colors.

If the terminal cannot do colors then we pass through to a simple echo
statment without the color markup.