mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
Internals
- Modified color processing so that it can be disabled completely at compile time. This is to assist the Windows port.
This commit is contained in:
parent
d230ea4001
commit
d4f85484df
4 changed files with 43 additions and 0 deletions
|
@ -389,6 +389,7 @@ int Context::dispatch (std::string &out)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Context::color ()
|
||||
{
|
||||
#ifdef FEATURE_COLOR
|
||||
if (determine_color_use)
|
||||
{
|
||||
// What the config says.
|
||||
|
@ -420,6 +421,9 @@ bool Context::color ()
|
|||
|
||||
// Cached result.
|
||||
return use_color;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue