corrected color handling for text commands