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:
Paul Beckingham 2012-03-03 09:08:46 -05:00
parent d230ea4001
commit d4f85484df
4 changed files with 43 additions and 0 deletions

View file

@ -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;
}