summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/Message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/Message.cpp')
-rw-r--r--dviware/dvisvgm/src/Message.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/dviware/dvisvgm/src/Message.cpp b/dviware/dvisvgm/src/Message.cpp
index 8ff4563974..52fee877ca 100644
--- a/dviware/dvisvgm/src/Message.cpp
+++ b/dviware/dvisvgm/src/Message.cpp
@@ -2,7 +2,7 @@
** Message.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2023 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2024 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -189,6 +189,15 @@ MessageStream& Message::estream (bool prefix) {
}
+/** Returns the output stream for user messages
+ * @param[in] always ignore verbosity settings if true */
+MessageStream& Message::ustream (bool always) {
+ init();
+ MessageStream *ms = (always || (LEVEL & USERMESSAGES)) ? &messageStream : &nullStream;
+ return *ms;
+}
+
+
static bool colorchar2int (char colorchar, int *val) {
colorchar = tolower(colorchar);
if (colorchar >= '0' && colorchar <= '9')