[GH-244] Correctly detect number of term colors