libzypp  17.35.14
colors.h File Reference
#include <iostream>
#include <string>
#include "ansi.h"
Include dependency graph for colors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ztui::ansi::ColorTraits< ztui::ColorContext >
 
struct  ztui::CCString< _ctxt >
 

Namespaces

 ztui
 
 ztui::ansi
 

Typedefs

using ztui::DEFAULTString = CCString< ColorContext::DEFAULT >
 
using ztui::MSG_STATUSString = CCString< ColorContext::MSG_STATUS >
 
using ztui::MSG_ERRORString = CCString< ColorContext::MSG_ERROR >
 
using ztui::MSG_WARNINGString = CCString< ColorContext::MSG_WARNING >
 
using ztui::POSITIVEString = CCString< ColorContext::POSITIVE >
 
using ztui::CHANGEString = CCString< ColorContext::CHANGE >
 
using ztui::NEGATIVEString = CCString< ColorContext::NEGATIVE >
 
using ztui::HIGHLIGHTString = CCString< ColorContext::HIGHLIGHT >
 
using ztui::LOWLIGHTString = CCString< ColorContext::LOWLIGHT >
 

Enumerations

enum  ztui::ColorContext {
  ztui::ColorContext::DEFAULT, ztui::ColorContext::RESULT, ztui::ColorContext::MSG_STATUS, ztui::ColorContext::MSG_ERROR,
  ztui::ColorContext::MSG_WARNING, ztui::ColorContext::PROMPT, ztui::ColorContext::PROMPT_OPTION, ztui::ColorContext::POSITIVE,
  ztui::ColorContext::CHANGE, ztui::ColorContext::NEGATIVE, ztui::ColorContext::HIGHLIGHT, ztui::ColorContext::LOWLIGHT,
  ztui::ColorContext::OSDEBUG
}
 

Functions

bool ztui::do_ttyout ()
 True unless output is a dumb tty or file. More...
 
bool ztui::do_colors ()
 If output is done in colors (depends on config) More...
 
template<ColorContext _ctxt>
ansi::ColorStream & ztui::operator<< (ansi::ColorStream &cstr_r, const CCString< _ctxt > &cstring_r)