mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
|
@ -30,6 +30,7 @@
|
|||
#include <sstream>
|
||||
#include <ViewText.h>
|
||||
#include <Context.h>
|
||||
#include <main.h>
|
||||
#include <Color.h>
|
||||
#include <text.h>
|
||||
#include <i18n.h>
|
||||
|
@ -52,6 +53,7 @@ int CmdColor::execute (std::string& output)
|
|||
{
|
||||
int rc = 0;
|
||||
|
||||
#ifdef FEATURE_COLOR
|
||||
// Get the non-attribute, non-fancy command line arguments.
|
||||
bool legend = false;
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
|
@ -262,6 +264,10 @@ int CmdColor::execute (std::string& output)
|
|||
}
|
||||
|
||||
output = out.str ();
|
||||
#else
|
||||
output = "Color not supported.\n";
|
||||
#endif
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue