- Added legend to "task calendar" output
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
+ Bug: when run without arguments, task dumps core on Solaris 10
|
+ Bug: when run without arguments, task dumps core on Solaris 10
|
||||||
+ "task calendar" now reports all months with due pending tasks
|
+ "task calendar" now reports all months with due pending tasks
|
||||||
+ Added rules for colorization by tag, project and keyword
|
+ Added rules for colorization by tag, project and keyword
|
||||||
|
+ Added legend to "task calendar"
|
||||||
|
|
||||||
0.9.9 (5/27/2008)
|
0.9.9 (5/27/2008)
|
||||||
+ Autoconf/automake behaving properly.
|
+ Autoconf/automake behaving properly.
|
||||||
|
|||||||
12
src/task.cpp
12
src/task.cpp
@@ -1856,7 +1856,7 @@ std::string renderMonth (
|
|||||||
due.year () == year)
|
due.year () == year)
|
||||||
{
|
{
|
||||||
table.setCellFg (row, dow + 1, Text::black);
|
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;
|
++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;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user