aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/formats.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/formats.cc')
-rw-r--r--src/clients/cave/formats.cc26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/clients/cave/formats.cc b/src/clients/cave/formats.cc
index 11f8f03..919f03a 100644
--- a/src/clients/cave/formats.cc
+++ b/src/clients/cave/formats.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2009 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -389,6 +389,30 @@ paludis::cave::f::show_contents_sym()
}
const std::string
+paludis::cave::f::show_choice_forced_enabled()
+{
+ return c::green() + "(%s)" + c::normal();
+}
+
+const std::string
+paludis::cave::f::show_choice_enabled()
+{
+ return c::green() + "%s" + c::normal();
+}
+
+const std::string
+paludis::cave::f::show_choice_forced_disabled()
+{
+ return c::red() + "(-%s)" + c::normal();
+}
+
+const std::string
+paludis::cave::f::show_choice_disabled()
+{
+ return c::red() + "-%s" + c::normal();
+}
+
+const std::string
paludis::cave::f::colour_formatter_indent()
{
return "%{column 30}%i%i%i%i";