Add term detection support for 256 color