Improve support for non-colour displays by adding a mask of attributes to