mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Enhancement - Color::colorize
- Made Color::colorize (const std::string&, const std::string&) static, so that it is now simple to colorize a string: std::cout << Color::colorize ("text", "red"); - Added sample foreground and background colors to the "color" command, and used the above shortcut to simplify handleOnColor.
This commit is contained in:
parent
80a3196097
commit
d7bded0d73
2 changed files with 27 additions and 35 deletions
|
@ -60,7 +60,7 @@ public:
|
|||
void blend (const Color&);
|
||||
|
||||
std::string colorize (const std::string&);
|
||||
std::string colorize (const std::string&, const std::string&);
|
||||
static std::string colorize (const std::string&, const std::string&);
|
||||
|
||||
bool nontrivial ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue