libzypp 17.36.1
config.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "config.h"
10#include <cstdlib>
11#include <cstring>
12#include <unistd.h>
13
14namespace ztui {
18 , color_result (ansi::Color::fromString("default"))
19 , color_msgStatus (ansi::Color::fromString("default"))
20 , color_msgError (ansi::Color::fromString("red"))
21 , color_msgWarning (ansi::Color::fromString("purple"))
22 , color_prompt (ansi::Color::fromString("bold"))
23 , color_promptOption(ansi::Color::nocolor()) // follow color_prompt
24 , color_positive (ansi::Color::fromString("green"))
25 , color_change (ansi::Color::fromString("brown"))
26 , color_negative (ansi::Color::fromString("red"))
27 , color_highlight (ansi::Color::fromString("cyan"))
28 , color_lowlight (ansi::Color::fromString("brown"))
29 , color_osdebug (ansi::Color::fromString("default") < ansi::Color::Attr::Reverse)
30 { }
31
32}
bool mayUseANSIEscapes()
Simple check whether stdout is a (not dumb) tty.
Definition colors.cc:37
bool do_ttyout()
True unless output is a dumb tty or file.
Definition colors.cc:27
bool hasANSIColor()
Simple check whether stdout can handle colors.
Definition colors.cc:53
bool do_colors()
If output is done in colors (depends on config)
Definition colors.cc:32
bool fromString(const std::string &val_r, ResolverFocus &ret_r)