mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement - debug support
- Added debug=on support. - Added color.debug= support.
This commit is contained in:
parent
173b3f6828
commit
02518e0223
7 changed files with 56 additions and 30 deletions
|
@ -281,4 +281,19 @@ std::string colorizeFootnote (const std::string& input)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string colorizeDebug (const std::string& input)
|
||||
{
|
||||
if (gsFg["debug.footnote"] != Text::nocolor ||
|
||||
gsBg["debug.footnote"] != Text::nocolor)
|
||||
{
|
||||
return Text::colorize (
|
||||
gsFg["debug.footnote"],
|
||||
gsBg["debug.footnote"],
|
||||
input);
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue