Bug Fix, Tweaks

- .taskrc debug= now defaults to 'off', which will reduce clutter
  and won't surprise beta testers.
- interactive.cpp did not compile when ncurses was not detected by
  autoconf.  That code branch obviously never got executed.
- The interactive shell now instructs the user to type 'quit' to
  leave the shell.
This commit is contained in:
Paul Beckingham 2009-06-22 22:33:09 -04:00
parent 62449d8b3e
commit c6a56d444e
3 changed files with 9 additions and 7 deletions

View file

@ -147,7 +147,7 @@ int Context::run ()
} }
// Dump all debug messages. // Dump all debug messages.
if (config.get ("debug", true)) if (config.get (std::string ("debug"), false))
foreach (d, debugMessages) foreach (d, debugMessages)
std::cout << colorizeDebug (*d) << std::endl; std::cout << colorizeDebug (*d) << std::endl;

View file

@ -968,8 +968,8 @@ void handleShell ()
{ {
// Display some kind of welcome message. // Display some kind of welcome message.
std::cout << ((context.config.get ("color", true) || context.config.get (std::string ("_forcecolor"), false)) std::cout << ((context.config.get ("color", true) || context.config.get (std::string ("_forcecolor"), false))
? Text::colorize (Text::bold, Text::nocolor, PACKAGE) ? Text::colorize (Text::bold, Text::nocolor, PACKAGE_STRING)
: PACKAGE) : PACKAGE_STRING)
<< " shell" << " shell"
<< std::endl << std::endl
<< std::endl << std::endl
@ -977,6 +977,8 @@ void handleShell ()
<< std::endl << std::endl
<< "There is no need to include the 'task' command itself." << "There is no need to include the 'task' command itself."
<< std::endl << std::endl
<< "Enter 'quit' to end the session."
<< std::endl
<< std::endl; << std::endl;
// Preserve any special override arguments, and reapply them for each // Preserve any special override arguments, and reapply them for each

View file

@ -33,7 +33,7 @@
//#include "text.h" //#include "text.h"
//#include "util.h" //#include "util.h"
//#include "main.h" //#include "main.h"
//#include "i18n.h" #include "i18n.h"
#include "../auto.h" #include "../auto.h"
#ifdef HAVE_LIBNCURSES #ifdef HAVE_LIBNCURSES
@ -118,7 +118,7 @@ int Context::interactive ()
#else #else
throw stringtable (INTERACTIVE_NO_NCURSES, throw stringtable.get (INTERACTIVE_NO_NCURSES,
"Interactive task is only available when built with ncurses " "Interactive task is only available when built with ncurses "
"support."); "support.");