aboutsummaryrefslogtreecommitdiff
path: root/src/common/scoped_message_writer.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-11 13:38:42 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-11 13:38:42 +0100
commite499ff3322fd46b1107681184dac300fcc7dbebd (patch)
treef95d2bb37d50006a0b32af6c37ffc41c57097957 /src/common/scoped_message_writer.h
parentscoped_message_writer: pause readline to match simplewallet (diff)
downloadmonero-e499ff3322fd46b1107681184dac300fcc7dbebd.tar.xz
simplewallet: factor out message_writer
Diffstat (limited to '')
-rw-r--r--src/common/scoped_message_writer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/scoped_message_writer.h b/src/common/scoped_message_writer.h
index 804e9dbdf..8fc98d2b0 100644
--- a/src/common/scoped_message_writer.h
+++ b/src/common/scoped_message_writer.h
@@ -117,9 +117,9 @@ public:
}
};
-inline scoped_message_writer success_msg_writer()
+inline scoped_message_writer success_msg_writer(bool color = true)
{
- return scoped_message_writer(epee::console_color_green, false, std::string(), el::Level::Info);
+ return scoped_message_writer(color ? epee::console_color_green : epee::console_color_default, false, std::string(), el::Level::Info);
}
inline scoped_message_writer msg_writer(epee::console_colors color = epee::console_color_default)