summaryrefslogtreecommitdiff
path: root/util/output.hh
diff options
context:
space:
mode:
Diffstat (limited to 'util/output.hh')
-rw-r--r--util/output.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/output.hh b/util/output.hh
index f4f939f..fa81127 100644
--- a/util/output.hh
+++ b/util/output.hh
@@ -34,6 +34,10 @@ inline void colour_if_pretty(bool pretty, std::ostream &stream,
if(pretty) stream << "\033[" + what + ";1m";
}
+/*! Reset all formatting on +stream+ if +pretty+.
+ * @param pretty Whether to act.
+ * @param stream The stream on which to reset formatting.
+ */
inline void reset_if_pretty(bool pretty, std::ostream &stream) {
if(pretty) stream << "\033[0m";
}