Enhancements - Context integration

- Context now gathers messages and footnotes.
- task now calls into the new 1.8.0 code (via Context), then calls
  into the old 1.7.0 code.  Two for the price of one.
This commit is contained in:
Paul Beckingham
2009-06-04 22:14:03 -04:00
parent 024986fe88
commit 54f155f439
4 changed files with 62 additions and 19 deletions

View File

@@ -297,16 +297,9 @@ int main (int argc, char** argv)
try
{
context.initialize (argc, argv);
/* return */ context.run ();
// When redirecting output to a file, do not use color, curses.
if (!isatty (fileno (stdout)))
{
context.config.set ("curses", "off");
if (! context.config.get (std::string ("_forcecolor"), false))
context.config.set ("color", "off");
}
// start OBSOLETE
TDB tdb;
std::string dataLocation = expandPath (context.config.get ("data.location"));
tdb.dataDirectory (dataLocation);
@@ -342,6 +335,7 @@ int main (int argc, char** argv)
std::cerr << context.stringtable.get (100, "Unknown error.") << std::endl;
return -2;
}
// end OBSOLETE
return 0;
}