- Added legend to "task calendar" output

This commit is contained in:
Paul Beckingham 2008-06-03 09:09:52 -04:00
parent f73c64801c
commit 74e77e4dc5
2 changed files with 12 additions and 1 deletions

View file

@ -14,6 +14,7 @@
+ Bug: when run without arguments, task dumps core on Solaris 10
+ "task calendar" now reports all months with due pending tasks
+ Added rules for colorization by tag, project and keyword
+ Added legend to "task calendar"
0.9.9 (5/27/2008)
+ Autoconf/automake behaving properly.

View file

@ -1856,7 +1856,7 @@ std::string renderMonth (
due.year () == year)
{
table.setCellFg (row, dow + 1, Text::black);
table.setCellBg (row, dow + 1, d < today.day () ? Text::red : Text::yellow);
table.setCellBg (row, dow + 1, d < today.day () ? Text::on_red : Text::on_yellow);
}
}
@ -1915,6 +1915,16 @@ void handleReportCalendar (const TDB& tdb, T& task, Config& conf)
++yFrom;
}
}
std::cout << "Legend: "
<< Text::colorize (Text::cyan, Text::nocolor, "today")
<< ", "
<< Text::colorize (Text::black, Text::on_yellow, "due")
<< ", "
<< Text::colorize (Text::black, Text::on_red, "overdue")
<< "."
<< std::endl
<< std::endl;
}
////////////////////////////////////////////////////////////////////////////////