Implement and test parsing of terminal colors/display modes