aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/format_user_config.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/format_user_config.hh')
-rw-r--r--src/clients/cave/format_user_config.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/clients/cave/format_user_config.hh b/src/clients/cave/format_user_config.hh
index dc682cf1d..86fcac53c 100644
--- a/src/clients/cave/format_user_config.hh
+++ b/src/clients/cave/format_user_config.hh
@@ -27,6 +27,7 @@
#include <memory>
#include <utility>
#include "format_string.hh"
+#include "colours.hh"
namespace paludis
{
@@ -349,6 +350,14 @@ namespace paludis
return result;
}
+ template <char... cs_>
+ MakeFormatStringFetcher<cs_...> operator<< (MakeFormatStringFetcher<cs_...> && f, const Colour & c)
+ {
+ MakeFormatStringFetcher<cs_...> result{std::move(f.user_key), f.user_key_version, std::move(f.text)};
+ result.text.append("%{colour " + c.name + "}");
+ return result;
+ }
+
template <char c_, char... cs_>
typename MakeDeduplicatedMakeFormatStringFetcher<c_, cs_...>::Type
operator<< (MakeFormatStringFetcher<cs_...> && f, const FormatParam<c_> &)